-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx
48 lines (36 loc) · 1.16 KB
/
nginx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# krischerven.info (SSL)
server {
listen 443 ssl;
listen [::]:443 ssl;
ssl_certificate /etc/letsencrypt/live/krischerven.info/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/krischerven.info/privkey.pem; # managed by Certbot
server_name krischerven.info www.krischerven.info;
location / {
include proxy_params;
proxy_pass http://unix:/home/dev/portfolio-webpage/portfolio-webpage-1.sock;
}
}
# krischerven.info (no SSL)
server {
listen 80;
listen [::]:80;
server_name krischerven.info www.krischerven.info;
location / {
include proxy_params;
proxy_pass http://unix:/home/dev/portfolio-webpage/portfolio-webpage-2.sock;
}
return 301 https://$host$request_uri;
}
# git.krischerven.info (SSL)
server {
listen 443 ssl;
listen [::]:443 ssl;
ssl_certificate /etc/letsencrypt/live/git.krischerven.info/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/git.krischerven.info/privkey.pem; # managed by Certbot
server_name git.krischerven.info;
location / {
include proxy_params;
proxy_pass https://krischerven.info:3000;
client_max_body_size 200M;
}
}