Skip to content

Instantly share code, notes, and snippets.

@achilles42
Last active July 26, 2018 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save achilles42/5645284080c429c6ca1740500c4ee59e to your computer and use it in GitHub Desktop.
Save achilles42/5645284080c429c6ca1740500c4ee59e to your computer and use it in GitHub Desktop.
## start server foobar.mydomain.com
server {
server_name foobar.mydomain.com ;
listen 80;
listen [::]:80;
set $proxy_upstream_name "-";
location / {
log_by_lua_block {
}
port_in_redirect off;
set $proxy_upstream_name "";
set $namespace "default";
set $ingress_name "foobar";
set $service_name "foobar-service";
client_max_body_size "25m";
proxy_set_header Host $best_http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header X-Request-ID $req_id;
proxy_set_header X-Real-IP $the_real_ip;
proxy_set_header X-Forwarded-For $the_real_ip;
proxy_set_header X-Forwarded-Host $best_http_host;
proxy_set_header X-Forwarded-Port $pass_port;
proxy_pass http://default-foobar-service-80;
proxy_redirect off;
}
}
## end server foobar.mydomain.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment