First commit

This commit is contained in:
2023-04-22 01:48:50 +05:00
commit b3fe570a48
27 changed files with 803 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
upstream gitea {
server 127.0.0.1:3001 fail_timeout=0;
}
server {
#listen 80; # IPv4 HTTP
listen 443 ssl http2; # uncomment to enable IPv4 HTTPS + HTTP/2
#listen [::]:80; # uncomment to enable IPv6 HTTP
#listen [::]:443 ssl http2; # uncomment to enable IPv6 HTTPS + HTTP/2
server_name git.eax.app;
access_log /var/log/gitea/nginx_access.log;
error_log /var/log/gitea/nginx_error.log;
#ssl_certificate ssl/example.com.crt;
#ssl_certificate_key ssl/example.com.key;
ssl_certificate /etc/letsencrypt/live/git.eax.app/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/git.eax.app/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/git.eax.app/chain.pem;
location / {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://gitea;
proxy_redirect off;
proxy_http_version 1.1;
proxy_buffering off;
chunked_transfer_encoding off;
}
}
server {
listen 80;
listen [::]:80;
server_name git.eax.app;
include nginxconfig.io/letsencrypt.conf;
location / {
return 301 https://git.eax.app$request_uri;
}
}