mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-23 05:57:19 +02:00
* docs: add nginx example Co-authored-by: bobby <1544881+desimone@users.noreply.github.com>
19 lines
579 B
Text
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;
|
|
}
|