2021-05-05 22:03:31 +00:00
|
|
|
server {
|
|
|
|
listen 443 default ssl;
|
2021-05-06 06:35:58 +00:00
|
|
|
server_name "auth.{{ base_domain }}";
|
2021-05-05 22:03:31 +00:00
|
|
|
add_header Strict-Transport-Security max-age=2592000;
|
2021-05-06 06:35:58 +00:00
|
|
|
set $oauth2proxy oauth2-proxy;
|
2021-05-05 22:03:31 +00:00
|
|
|
|
|
|
|
location / {
|
2021-05-06 06:35:58 +00:00
|
|
|
proxy_pass http://$oauth2proxy:4180;
|
2021-05-05 22:03:31 +00:00
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Scheme $scheme;
|
|
|
|
proxy_connect_timeout 1;
|
|
|
|
proxy_send_timeout 30;
|
|
|
|
proxy_read_timeout 30;
|
|
|
|
}
|
|
|
|
}
|