-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
61 lines (47 loc) · 1.42 KB
/
nginx.conf
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
49
50
51
52
53
54
55
56
57
58
59
60
events {
worker_connections 4096;
}
http {
server {
listen 80;
server_name feedo.cloudns.ph;
location /.well-known/acme-challenge/ {
root /var/www/certbot/;
}
location / {
return 301 https://$server_name$request_uri;
}
}
server {
server_name feedo.cloudns.ph;
listen 443 ssl;
listen [::]:443 ssl;
ssl_certificate /etc/nginx/cert.pem;
ssl_certificate_key /etc/nginx/private.key;
ssl_protocols TLSv1.3 TLSv1.2;
ssl_session_cache shared:SSL:20m;
ssl_session_timeout 60m;
ssl_prefer_server_ciphers on;
ssl_ciphers ECDH+AESGCM:ECDH+AES256:ECDH+AES128:DHE+AES128:!ADH:!AECDH:!MD5;
add_header Strict-Transport-Security "max-age=31536000" always;
location /webhook {
proxy_pass http://app:8000;
}
location /digests {
proxy_pass http://app:8000;
}
location /settings {
proxy_pass http://app:8000;
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;
}
location /read_settings {
proxy_pass http://app:8000;
}
location /write_settings {
proxy_pass http://app:8000;
}
}
}