fix: firezone websocket
This commit is contained in:
		
							parent
							
								
									23813ac048
								
							
						
					
					
						commit
						b5cec5cf4c
					
				
					 1 changed files with 10 additions and 2 deletions
				
			
		|  | @ -2,12 +2,20 @@ server { | ||||||
|     listen 80; |     listen 80; | ||||||
|     server_name fz.ixvd.net; |     server_name fz.ixvd.net; | ||||||
| 
 | 
 | ||||||
|  |     location /live/websocket {  | ||||||
|  |         proxy_pass http://firezone:13000; | ||||||
|  |         proxy_set_header X-Real-IP $remote_addr; | ||||||
|  |         proxy_set_header Host $host; | ||||||
|  |         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||||||
|  |         proxy_http_version 1.1; | ||||||
|  |         proxy_set_header Upgrade $http_upgrade; | ||||||
|  |         proxy_set_header Connection upgrade; | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|     location / { |     location / { | ||||||
|         proxy_set_header X-Forwarded-For $remote_addr; |         proxy_set_header X-Forwarded-For $remote_addr; | ||||||
|         proxy_set_header X-Forwarded-Proto https;  |         proxy_set_header X-Forwarded-Proto https;  | ||||||
|         proxy_set_header Host $host; |         proxy_set_header Host $host; | ||||||
|         proxy_set_header Connection $http_connection; |  | ||||||
|         proxy_set_header Upgrade $http_upgrade; |  | ||||||
|         proxy_pass http://firezone:13000; |         proxy_pass http://firezone:13000; | ||||||
|         client_max_body_size 0; |         client_max_body_size 0; | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue