added nginx config 4 gitea

fixed web site URL error
This commit is contained in:
2026-06-12 00:11:12 +03:00
parent 0f044e6893
commit c4918a8db1
2 changed files with 33 additions and 1 deletions
+32
View File
@@ -0,0 +1,32 @@
server {
server_name git.a2s.su;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
client_max_body_size 512M;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/git.a2s.su/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/git.a2s.su/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = git.a2s.su) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name git.a2s.su;
return 404; # managed by Certbot
}
+1 -1
View File
@@ -1,3 +1,3 @@
# TODO
- [ ] Fix error `The detected web site URL is "http://127.0.0.1:3000/", it's unlikely matching the site config.`
- [x] Fix error `The detected web site URL is "http://127.0.0.1:3000/", it's unlikely matching the site config.`