Initial commit

This commit is contained in:
Trey Blancher 2022-11-28 12:37:29 -05:00
parent 0537f1b287
commit 8613e2f680

View File

@ -0,0 +1,31 @@
server {
listen 80;
listen [::]:80;
server_name git.eldon.me;
return 301 https://git.eldon.me$request_uri;
# Redirect non-https traffic to https
# if ($scheme != "https") {
# return 301 https://$host$request_uri;
# } # managed by Certbot
}
server {
listen 443 ssl;
server_name git.eldon.me;
ssl_certificate /etc/letsencrypt/live/aprilandtrey.us/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/aprilandtrey.us/privkey.pem; # managed by Certbot
root /var/www/git.eldon.me/;
location / {
client_max_body_size 1024M;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://gitea:3000;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
}
}