pomerium/examples/nginx/pomerium.conf
Travis Groth a69b9957a1
docs: add nginx example (#1329)
* docs: add nginx example

Co-authored-by: bobby <1544881+desimone@users.noreply.github.com>
2020-08-26 17:10:23 -04:00

19 lines
579 B
Text

# Pomerium endpoint
server {
listen 443 ssl;
server_name authenticate.localhost.pomerium.io fwdauth.localhost.pomerium.io;
ssl_certificate /etc/nginx/nginx.pem;
ssl_certificate_key /etc/nginx/nginx-key.pem;
location / {
proxy_pass http://pomerium;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
}
}
# Define an upstream so that we don't need resolvers when we use variables in proxy_pass directives
# https://stackoverflow.com/questions/17685674/nginx-proxy-pass-with-remote-addr
upstream pomerium {
server pomerium;
}