Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name sbd.example.org;
- root /var/www/sbd/html;
- index index.html index.htm;
- location / {
- try_files $uri $uri/ =404;
- }
- location ~ ^/[a-z].+$ {
- rewrite ^/(.*)$ /$1 break;
- proxy_pass http://127.0.0.1:3000;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- default_type application/json;
- proxy_hide_header Content-Location;
- proxy_set_header Connection "";
- proxy_http_version 1.1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement