-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
30 lines (25 loc) · 797 Bytes
/
Copy pathnginx.conf
File metadata and controls
30 lines (25 loc) · 797 Bytes
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
worker_processes 1;
events { worker_connections 1024; }
http {
server {
listen 80;
server_name knowledge-game.duckdns.org;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name knowledge-game.duckdns.org;
ssl_certificate /etc/letsencrypt/live/knowledge-game.duckdns.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/knowledge-game.duckdns.org/privkey.pem;
location / {
proxy_pass http://app:3000;
proxy_redirect off;
proxy_ssl_session_reuse off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
}