mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-07-27 10:41:08 +02:00
Solved peertube bugs
This commit is contained in:
parent
996244b672
commit
f9f76892af
@ -1,10 +1,12 @@
|
||||
location {{location | default("/")}}
|
||||
{% set location = location | default("/")%}
|
||||
|
||||
location {{location}}
|
||||
{
|
||||
{% if oauth2_proxy_enabled | default(false) | bool %}
|
||||
{% include 'roles/web-app-oauth2-proxy/templates/following_directives.conf.j2'%}
|
||||
{% endif %}
|
||||
|
||||
proxy_pass http://127.0.0.1:{{ http_port }}{{ location | default("/") }};
|
||||
proxy_pass http://127.0.0.1:{{ http_port }}{{ location if not location.startswith('@') else '' }};
|
||||
|
||||
# headers
|
||||
proxy_set_header Host $host;
|
||||
|
@ -2,7 +2,7 @@ location {{ location_ws }} {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_pass http://127.0.0.1:{{ ws_port }};
|
||||
|
||||
# Proxy buffering needs to be disabled for websockets.
|
||||
|
@ -9,7 +9,9 @@
|
||||
loop_control:
|
||||
loop_var: domain
|
||||
vars:
|
||||
http: "{{ ports.localhost.http[application_id] }}"
|
||||
# Websockt and http listen to the same port
|
||||
http_port: "{{ ports.localhost.http[application_id] }}"
|
||||
ws_port: "{{ ports.localhost.http[application_id] }}"
|
||||
|
||||
- name: "Install and activate auth-openid-connect plugin if OIDC is enabled"
|
||||
include_tasks: enable-oidc.yml
|
||||
|
Loading…
x
Reference in New Issue
Block a user