2025-01-30 15:04:23 +01:00
|
|
|
# Remove this template when BBB is running successfully
|
2022-12-03 20:43:33 +01:00
|
|
|
server {
|
2025-01-29 15:52:40 +01:00
|
|
|
|
|
|
|
{% include 'roles/letsencrypt/templates/ssl_header.j2' %}
|
2022-12-02 21:18:55 +01:00
|
|
|
|
2022-12-03 20:43:33 +01:00
|
|
|
location / {
|
|
|
|
proxy_http_version 1.1;
|
2025-02-12 12:41:13 +01:00
|
|
|
proxy_pass http://$endpoint_addr:{{ports.localhost.oauth2_proxy[application_id]}};
|
2022-12-02 21:18:55 +01:00
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
2022-12-03 20:43:33 +01:00
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection $connection_upgrade;
|
|
|
|
proxy_cache_bypass $http_upgrade;
|
2022-12-02 21:18:55 +01:00
|
|
|
}
|
|
|
|
}
|