2020-03-17 16:52:36 +01:00
|
|
|
events {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
error_log /dev/stderr info;
|
|
|
|
error_log /dev/stderr warn;
|
|
|
|
error_log /dev/stderr error;
|
|
|
|
|
|
|
|
http {
|
|
|
|
client_max_body_size 20m;
|
|
|
|
|
|
|
|
upstream gonito {
|
|
|
|
server gonito:3000;
|
2020-03-26 21:50:37 +01:00
|
|
|
|
|
|
|
keepalive 100;
|
2020-03-17 16:52:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
2020-03-26 21:50:37 +01:00
|
|
|
server_name gonito;
|
2020-03-17 16:52:36 +01:00
|
|
|
|
|
|
|
location / {
|
|
|
|
proxy_pass http://gonito;
|
|
|
|
proxy_redirect off;
|
2020-03-26 21:50:37 +01:00
|
|
|
|
2021-02-27 22:48:48 +01:00
|
|
|
proxy_read_timeout 6000;
|
|
|
|
proxy_connect_timeout 6000;
|
2020-03-26 21:50:37 +01:00
|
|
|
proxy_http_version 1.1;
|
2021-02-27 22:48:48 +01:00
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "Upgrade";
|
2020-03-17 16:52:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
listen 443 ssl;
|
|
|
|
|
|
|
|
ssl_certificate /etc/certs/fullchain.pem;
|
|
|
|
ssl_certificate_key /etc/certs/privkey.pem;
|
|
|
|
}
|
|
|
|
}
|