mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 10:19:09 +00:00 
			
		
		
		
	Solved peertube bugs
This commit is contained in:
		| @@ -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,8 +2,8 @@ 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_pass           http://127.0.0.1:{{ ws_port }}; | ||||
|   proxy_set_header X-Forwarded-Proto $scheme; | ||||
|   proxy_pass                         http://127.0.0.1:{{ ws_port }}; | ||||
|    | ||||
|   # Proxy buffering needs to be disabled for websockets.  | ||||
|   proxy_buffering      off; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user