nginx.conf
· 1.3 KiB · Nginx configuration file
Raw
# i have no idea what this section is for, but the site won't work without it
events {
worker_connections 2048;
}
http {
include mime.types;
ssl_certificate /etc/letsencrypt/live/git.user333.sweeux.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/git.user333.sweeux.org/privkey.pem;
port_in_redirect off;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
server {
listen 8443 ssl;
listen 8080;
server_name user333.sweeux.org;
location / {
root /srv/http/user333.sweeux.org;
}
location /f/ {
proxy_pass http://127.0.0.1:7000/;
}
location /p/ {
proxy_pass http://127.0.0.1:6157/;
}
location /git {
return 301 https://git.user333.sweeux.org/;
}
}
server {
listen 8443 ssl;
listen 8080;
server_name git.user333.sweeux.org;
location / {
proxy_pass http://127.0.0.1:3001/;
proxy_set_header Connection $http_connection;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Real-Ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 512M;
}
}
}
| 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 | proxy_set_header Connection $http_connection; |
| 47 | proxy_set_header Upgrade $http_upgrade; |
| 48 | proxy_set_header Host $host; |
| 49 | proxy_set_header X-Real-Ip $remote_addr; |
| 50 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
| 51 | proxy_set_header X-Forwarded-Proto $scheme; |
| 52 | |
| 53 | client_max_body_size 512M; |
| 54 | } |
| 55 | } |
| 56 | } |
| 57 |