Skip to content

Instantly share code, notes, and snippets.

@asoltys
Created October 14, 2019 15:25
Show Gist options
  • Save asoltys/c0595b72b2e243cf4025007be787f1ae to your computer and use it in GitHub Desktop.
Save asoltys/c0595b72b2e243cf4025007be787f1ae to your computer and use it in GitHub Desktop.
server {
listen 80;
listen [::]:80;
server_name althea;
error_page 405 =200 $uri;
location / {
proxy_pass http://127.0.0.1:3005;
}
location /backend {
rewrite ^/backend(.*) $1 break;
proxy_pass http://192.168.10.1:4877$uri$is_args$args;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment