-
Notifications
You must be signed in to change notification settings - Fork 0
/
host_config
24 lines (21 loc) · 730 Bytes
/
host_config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# by default redirect to https vs http
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
# port 443 is the default for https connections
listen 443 ssl;
server_name <change this>;
# where your SSL certificate is stored
ssl_certificate /etc/letsencrypt/live/<change this>/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/<change this>/privkey.pem;
# prevent people from attempting to upload files >75MB
client_max_body_size 75M;
# redirect all requests to the docker container
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://localhost:9000;
}
}