gitea- https://git.supernets.org/ |
git clone git://git.acid.vegas/gitea.git |
Log | Files | Refs | Archive |
nginx.conf (697B)
1 server { 2 server_name git.supernets.org; 3 location / { 4 client_max_body_size 4096M; 5 proxy_pass http://10.4.20.420:30443; 6 proxy_set_header Host $host; 7 proxy_set_header X-Real-IP $remote_addr; 8 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 9 proxy_set_header X-Forwarded-Proto $scheme; 10 } 11 12 listen 443 ssl; 13 ssl_certificate /etc/letsencrypt/live/git.supernets.org/fullchain.pem; 14 ssl_certificate_key /etc/letsencrypt/live/git.supernets.org/privkey.pem; 15 } 16 server { 17 if ($host = git.supernets.org) { 18 return 301 https://$host$request_uri; 19 } 20 21 listen 80; 22 server_name git.supernets.org; 23 return 404; 24 }