Skip to content

Instantly share code, notes, and snippets.

@OliverVea
Created November 15, 2022 03:48
Show Gist options
  • Select an option

  • Save OliverVea/1d6c4bb1db2b1ab26d7f415ef16f4b60 to your computer and use it in GitHub Desktop.

Select an option

Save OliverVea/1d6c4bb1db2b1ab26d7f415ef16f4b60 to your computer and use it in GitHub Desktop.
Veachron Nginx Configuration
events {
}
http {
resolver 127.0.0.11 ipv6=off valid=1s;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
server {
listen 80;
server_name ui.localhost;
location / {
set $backend "http://ui:3000";
proxy_pass $backend;
}
}
server {
listen 80;
server_name api.localhost;
location / {
set $backend "http://api:5000";
proxy_pass $backend;
}
}
server {
listen 80 default_server;
server_name _;
large_client_header_buffers 4 16k;
return 404;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment