| 1 | # i have no idea what this section is for, but the site won't work without it |
| 2 | events { |
| 3 | worker_connections 2048; |
| 4 | } |
| 5 | |
| 6 | http { |
| 7 | include mime.types; |
| 8 | |
| 9 | ssl_certificate /etc/letsencrypt/live/git.user333.sweeux.org/fullchain.pem; |
| 10 | ssl_certificate_key /etc/letsencrypt/live/git.user333.sweeux.org/privkey.pem; |
| 11 | |
| 12 | port_in_redirect off; |
| 13 | |
| 14 | include /etc/letsencrypt/options-ssl-nginx.conf; |
| 15 | ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; |
| 16 | |
| 17 | server { |
| 18 | listen 8443 ssl; |
| 19 | listen 8080; |
| 20 | server_name user333.sweeux.org; |
| 21 | |
| 22 | location / { |
| 23 | root /srv/http/user333.sweeux.org; |
| 24 | } |
| 25 | |
| 26 | location /f/ { |
| 27 | proxy_pass http://127.0.0.1:7000/; |
| 28 | } |
| 29 | |
| 30 | location /p/ { |
| 31 | proxy_pass http://127.0.0.1:6157/; |
| 32 | } |
| 33 | |
| 34 | location /git { |
| 35 | return 301 https://git.user333.sweeux.org/; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | server { |
| 40 | listen 8443 ssl; |
| 41 | listen 8080; |
| 42 | server_name git.user333.sweeux.org; |
| 43 | |
| 44 | location / { |
| 45 | proxy_pass http://127.0.0.1:3001/; |
| 46 | |
| 47 | proxy_set_header Connection $http_connection; |
| 48 | proxy_set_header Upgrade $http_upgrade; |
| 49 | proxy_set_header Host $host; |
| 50 | proxy_set_header X-Real-Ip $remote_addr; |
| 51 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
| 52 | proxy_set_header X-Forwarded-Proto $scheme; |
| 53 | |
| 54 | client_max_body_size 512M; |
| 55 | } |
| 56 | } |
| 57 | } |
| 58 |
user333 / nginx.conf
Last active 3 months ago
Revision 2d7e05607b4ab8fe1fe9451ab6cbf0877c8a50f4