Added GZIP compression

This commit is contained in:
Danny Bessems 2020-10-13 09:47:39 +02:00
parent 8cdb950116
commit f2863849fa
17 changed files with 23 additions and 17 deletions

View File

@ -86,6 +86,8 @@ data:
stsSeconds: 315360000
stsIncludeSubdomains: true
stsPreload: true
compression:
compress: {}
routers:
force-tls:
entryPoints:

View File

@ -15,11 +15,4 @@ spec:
middlewares:
- name: 2fa-authentication@file
- name: security-headers@file
tls:
certResolver: default
options:
name: defaults@file
domains:
- main: '*.spamasaurus.com'
sans:
- 'spamasaurus.com'
- name: compression@file

View File

@ -78,6 +78,7 @@ spec:
middlewares:
- name: 2fa-authentication@file
- name: security-headers@file
- name: compression@file
---
apiVersion: v1
kind: PersistentVolume

View File

@ -76,6 +76,7 @@ spec:
port: 9091
middlewares:
- name: security-headers@file
- name: compression@file
---
apiVersion: v1
kind: PersistentVolume

View File

@ -94,6 +94,7 @@ spec:
port: 8080
middlewares:
- name: security-headers@file
- name: compression@file
- match: Host(`vault.spamasaurus.com`) && Path(`/notifications/hub`)
kind: Rule
services:
@ -101,6 +102,7 @@ spec:
port: 3012
middlewares:
- name: security-headers@file
- name: compression@file
---
apiVersion: v1
kind: PersistentVolume

View File

@ -103,6 +103,7 @@ spec:
port: 80
middlewares:
- name: security-headers@file
- name: compression@file
---
apiVersion: v1
kind: PersistentVolume

View File

@ -74,6 +74,7 @@ spec:
port: 3000
middlewares:
- name: security-headers@file
- name: compression@file
---
apiVersion: v1
kind: PersistentVolume

View File

@ -55,6 +55,7 @@ spec:
port: 80
middlewares:
- name: security-headers@file
- name: compression@file
---
apiVersion: v1
kind: PersistentVolume

View File

@ -109,6 +109,7 @@ spec:
middlewares:
- name: prepend-path-guacamole
- name: security-headers@file
- name: compression@file
---
apiVersion: v1
kind: PersistentVolume

View File

@ -71,6 +71,7 @@ spec:
port: 8080
middlewares:
- name: security-headers@file
- name: compression@file
---
apiVersion: v1
kind: PersistentVolume

View File

@ -65,6 +65,7 @@ spec:
middlewares:
- name: 2fa-authentication@file
- name: security-headers@file
- name: compression@file
- match: Host(`index.pvr.spamasaurus.com`) && (Headers(`X-Api-Key`, `<removed>`) || Query(`apikey=<removed>`))
kind: Rule
services:
@ -72,6 +73,7 @@ spec:
port: 5076
middlewares:
- name: security-headers@file
- name: compression@file
tls:
options:
name: defaults@file

View File

@ -70,6 +70,7 @@ spec:
middlewares:
- name: 2fa-authentication@file
- name: security-headers@file
- name: compression@file
- match: Host(`movies.pvr.spamasaurus.com`) && (Headers(`X-Api-Key`, `<removed>`) || Query(`apikey=<removed>`))
kind: Rule
services:
@ -77,6 +78,7 @@ spec:
port: 7878
middlewares:
- name: security-headers@file
- name: compression@file
tls:
options:
name: defaults@file

View File

@ -69,6 +69,7 @@ spec:
middlewares:
- name: 2fa-authentication@file
- name: security-headers@file
- name: compression@file
- match: Host(`download.pvr.spamasaurus.com`) && (Headers(`X-Api-Key`, `<removed>`) || Query(`apikey=<removed>`))
kind: Rule
services:
@ -76,6 +77,7 @@ spec:
port: 8080
middlewares:
- name: security-headers@file
- name: compression@file
tls:
options:
name: defaults@file

View File

@ -70,6 +70,7 @@ spec:
middlewares:
- name: 2fa-authentication@file
- name: security-headers@file
- name: compression@file
- match: Host(`series.pvr.spamasaurus.com`) && (Headers(`X-Api-Key`, `<removed>`) || Query(`apikey=<removed>`))
kind: Rule
services:
@ -77,6 +78,7 @@ spec:
port: 8989
middlewares:
- name: security-headers@file
- name: compression@file
tls:
options:
name: defaults@file

View File

@ -60,14 +60,7 @@ spec:
port: 80
middlewares:
- name: security-headers@file
# tls:
# options:
# name: defaults@file
# certResolver: default
# domains:
# - main: '*.itch.fyi'
# sans:
# - 'itch.fyi'
- name: compression@file
---
apiVersion: v1
kind: PersistentVolume

View File

@ -65,6 +65,7 @@ spec:
middlewares:
- name: security-headers@file
- name: 2fa-authentication@file
- name: compression@file
---
apiVersion: v1
kind: PersistentVolume

View File

@ -14,5 +14,5 @@ spec:
namespace: vault
port: 8200
middlewares:
# - name: ldap-authentication@file
- name: security-headers@file
- name: compression@file