Compare commits
3 Commits
fc2e16321b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| a409cd53e3 | |||
| cd23baf95c | |||
| f29b8f9013 |
@@ -6,9 +6,15 @@ server {
|
||||
ssl_certificate /etc/letsencrypt/live/gitea.sggai.site/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/gitea.sggai.site/privkey.pem;
|
||||
|
||||
root /var/www/gitea.sggai.site;
|
||||
root /var/www;
|
||||
index index.html;
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_read_timeout 3600s;
|
||||
proxy_send_timeout 3600s;
|
||||
|
||||
location ^~ /.well-known/acme-challenge/ {
|
||||
root /var/www;
|
||||
default_type text/plain;
|
||||
@@ -19,7 +25,6 @@ server {
|
||||
if ($scheme = http) {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
try_files $uri $uri/ /index.html;
|
||||
proxy_pass http://10.1.0.1:3000;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ server {
|
||||
ssl_certificate /etc/letsencrypt/live/proxy.sggai.site/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/proxy.sggai.site/privkey.pem;
|
||||
|
||||
root /var/www/proxy.sggai.site;
|
||||
root /var/www;
|
||||
index index.html;
|
||||
|
||||
location ^~ /.well-known/acme-challenge/ {
|
||||
|
||||
Reference in New Issue
Block a user