Files
jambonz-infrastructure/packer/jambonz-mini/files/nginx.api
T

12 lines
407 B
Plaintext

server {
listen 80;
server_name api.your_domain.com; # enter the app sub-domain that you setup in 11
location / {
proxy_pass http://localhost:3000; # point the reverse proxy to the api server on port 3000
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;
}
}