Last active 2 weeks ago

Revision 761d6f2cdaaa1d23256d5166479ec115db362b5b

nginx.conf Raw
1# i have no idea what this section is for, but the site won't work without it
2events {
3 worker_connections 2048;
4}
5
6http {
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