mirror of
				https://github.com/TeamPiped/Piped-Docker.git
				synced 2024-08-14 23:56:53 +00:00 
			
		
		
		
	Update varnish and headers (#4)
* update varnish * update headers * Indent with 4 spaces. Co-authored-by: FireMasterK <20838718+FireMasterK@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									0db53dcbeb
								
							
						
					
					
						commit
						5862e8354a
					
				
					 2 changed files with 70 additions and 30 deletions
				
			
		|  | @ -8,10 +8,36 @@ | ||||||
| 
 | 
 | ||||||
| FRONTEND_HOSTNAME { | FRONTEND_HOSTNAME { | ||||||
|     reverse_proxy pipedfrontend:80 |     reverse_proxy pipedfrontend:80 | ||||||
|  |     header { | ||||||
|  |         # disable FLoC tracking | ||||||
|  |         Permissions-Policy interest-cohort=() | ||||||
|  | 
 | ||||||
|  |         # enable HSTS | ||||||
|  |         Strict-Transport-Security max-age=31536000; | ||||||
|  | 
 | ||||||
|  |         # keep referrer data off | ||||||
|  |         Referrer-Policy no-referrer | ||||||
|  | 
 | ||||||
|  |         # prevent for appearing in search engine for private instances (option) | ||||||
|  |         #X-Robots-Tag noindex | ||||||
|  |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| BACKEND_HOSTNAME { | BACKEND_HOSTNAME { | ||||||
|     reverse_proxy varnish:80 |     reverse_proxy varnish:80 | ||||||
|  |     header { | ||||||
|  |         # disable FLoC tracking | ||||||
|  |         Permissions-Policy interest-cohort=() | ||||||
|  | 
 | ||||||
|  |         # enable HSTS | ||||||
|  |         Strict-Transport-Security max-age=31536000; | ||||||
|  | 
 | ||||||
|  |         # keep referrer data off | ||||||
|  |         Referrer-Policy no-referrer | ||||||
|  | 
 | ||||||
|  |         # prevent for appearing in search engine for private instances (option) | ||||||
|  |         #X-Robots-Tag noindex | ||||||
|  |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| PROXY_HOSTNAME { | PROXY_HOSTNAME { | ||||||
|  | @ -22,8 +48,22 @@ PROXY_HOSTNAME { | ||||||
|         method OPTIONS |         method OPTIONS | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|   header Access-Control-Allow-Origin * |     header { | ||||||
|   header Access-Control-Allow-Headers * |         Access-Control-Allow-Origin * | ||||||
|  |         Access-Control-Allow-Headers * | ||||||
|  |    | ||||||
|  |         # disable FLoC tracking | ||||||
|  |         Permissions-Policy interest-cohort=() | ||||||
|  | 
 | ||||||
|  |         # enable HSTS | ||||||
|  |         Strict-Transport-Security max-age=31536000; | ||||||
|  | 
 | ||||||
|  |         # keep referrer data off | ||||||
|  |         Referrer-Policy no-referrer | ||||||
|  | 
 | ||||||
|  |         # prevent for appearing in search engine for private instances (option) | ||||||
|  |         #X-Robots-Tag noindex | ||||||
|  |     } | ||||||
| 
 | 
 | ||||||
|     route { |     route { | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -21,7 +21,7 @@ services: | ||||||
|             - postgres |             - postgres | ||||||
|         container_name: piped-backend |         container_name: piped-backend | ||||||
|     varnish: |     varnish: | ||||||
|         image: varnish:6.6-alpine |         image: varnish:7.0-alpine | ||||||
|         restart: unless-stopped |         restart: unless-stopped | ||||||
|         volumes: |         volumes: | ||||||
|             - ./config/default.vcl:/etc/varnish/default.vcl:ro |             - ./config/default.vcl:/etc/varnish/default.vcl:ro | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue