add: PORT env var
This commit is contained in:
parent
52c8983634
commit
5961999ce4
9 changed files with 58 additions and 4 deletions
28
example/nginx/sites-enabled/tetratto.conf
Normal file
28
example/nginx/sites-enabled/tetratto.conf
Normal file
|
@ -0,0 +1,28 @@
|
|||
# servers can be uncommented to add load balancing
|
||||
upstream tetratto {
|
||||
least_conn;
|
||||
server localhost:4118;
|
||||
# server localhost:5118;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
|
||||
server_name tetratto;
|
||||
|
||||
# main service stuff
|
||||
location / {
|
||||
proxy_pass http://tetratto;
|
||||
proxy_pass_header CF-Connecting-IP;
|
||||
proxy_pass_request_headers on;
|
||||
}
|
||||
|
||||
# websocket forwarding stuff
|
||||
location ~ /_connect/ {
|
||||
proxy_pass http://tetratto;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue