ingress/internal: relax security
All checks were successful
/ continuous-deploy (push) Successful in 23s
All checks were successful
/ continuous-deploy (push) Successful in 23s
ingress/public: disabled authentik-forward-auth (problems with phone clients) middlewares/rate-limit: increase values middlewares/security-headers:- added sts - fix nextcloud warning Some headers are not set correctly on your instance - The Strict-Transport-Security HTTP header is not set (should be at least 15552000 seconds). For enhanced security, it is recommended to enable HSTS
This commit is contained in:
@@ -21,6 +21,9 @@ spec:
|
|||||||
- name: ak-outpost-authentik-embedded-outpost
|
- name: ak-outpost-authentik-embedded-outpost
|
||||||
namespace: id-limbosolutions-com
|
namespace: id-limbosolutions-com
|
||||||
port: 9000
|
port: 9000
|
||||||
|
middlewares:
|
||||||
|
- name: nextcloud-security-headers
|
||||||
|
- name: rate-limit
|
||||||
|
|
||||||
|
|
||||||
# PUBLIC SHARES (NO SSO)
|
# PUBLIC SHARES (NO SSO)
|
||||||
@@ -63,7 +66,7 @@ spec:
|
|||||||
- name: nextcloud
|
- name: nextcloud
|
||||||
port: 8080
|
port: 8080
|
||||||
middlewares:
|
middlewares:
|
||||||
- name: authentik-forward-auth
|
# - name: authentik-forward-auth
|
||||||
- name: nextcloud-security-headers
|
- name: nextcloud-security-headers
|
||||||
- name: rate-limit
|
- name: rate-limit
|
||||||
|
|
||||||
|
|||||||
@@ -14,59 +14,14 @@ spec:
|
|||||||
- main: cloud.limbosolutions.com
|
- main: cloud.limbosolutions.com
|
||||||
|
|
||||||
routes:
|
routes:
|
||||||
|
|
||||||
# # AUTHENTIK OUTPOST
|
|
||||||
# - match: Host(`cloud.limbosolutions.com`) && PathPrefix(`/outpost.goauthentik.io`)
|
|
||||||
# kind: Rule
|
|
||||||
# services:
|
|
||||||
# - name: ak-outpost-authentik-embedded-outpost
|
|
||||||
# namespace: id-limbosolutions-com
|
|
||||||
# port: 9000
|
|
||||||
|
|
||||||
|
|
||||||
# # PUBLIC SHARES (NO SSO)
|
|
||||||
# - match: Host(`cloud.limbosolutions.com`) &&
|
|
||||||
# (PathPrefix(`/s/`) ||
|
|
||||||
# PathPrefix(`/index.php/s/`) ||
|
|
||||||
# PathPrefix(`/public.php/`) ||
|
|
||||||
# PathPrefix(`/remote.php/dav/public-files/`))
|
|
||||||
# kind: Rule
|
|
||||||
# services:
|
|
||||||
# - name: nextcloud
|
|
||||||
# port: 8080
|
|
||||||
# middlewares:
|
|
||||||
# - name: rate-limit
|
|
||||||
# - name: nextcloud-security-headers
|
|
||||||
|
|
||||||
# # Sync clients + mobile app (no SSO)
|
|
||||||
# - match: Host(`cloud.limbosolutions.com`) &&
|
|
||||||
# (PathPrefix(`/remote.php/dav`) ||
|
|
||||||
# PathPrefix(`/remote.php/webdav`) ||
|
|
||||||
# PathPrefix(`/remote.php/caldav`) ||
|
|
||||||
# PathPrefix(`/remote.php/carddav`) ||
|
|
||||||
# PathPrefix(`/ocs/v1.php`) ||
|
|
||||||
# PathPrefix(`/ocs/v2.php`) ||
|
|
||||||
# PathPrefix(`/status.php`) ||
|
|
||||||
# PathPrefix(`/index.php/login/v2`) ||
|
|
||||||
# PathPrefix(`/index.php/login/v2/poll`))
|
|
||||||
# kind: Rule
|
|
||||||
# services:
|
|
||||||
# - name: nextcloud
|
|
||||||
# port: 8080
|
|
||||||
# middlewares:
|
|
||||||
# #- name: webdav-strip-auth
|
|
||||||
# #- name: rate-limit
|
|
||||||
|
|
||||||
# 3) EVERYTHING ELSE (SSO REQUIRED)
|
|
||||||
- match: Host(`cloud.limbosolutions.com`)
|
- match: Host(`cloud.limbosolutions.com`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
services:
|
services:
|
||||||
- name: nextcloud
|
- name: nextcloud
|
||||||
port: 8080
|
port: 8080
|
||||||
middlewares: []
|
middlewares:
|
||||||
#- name: authentik-forward-auth
|
- name: nextcloud-security-headers
|
||||||
#- name: nextcloud-security-headers
|
- name: rate-limit
|
||||||
#- name: rate-limit
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ metadata:
|
|||||||
name: rate-limit
|
name: rate-limit
|
||||||
spec:
|
spec:
|
||||||
rateLimit:
|
rateLimit:
|
||||||
average: 50
|
average: 100
|
||||||
burst: 100
|
burst: 500
|
||||||
|
|
||||||
---
|
---
|
||||||
# Optional: security headers for UI
|
# Optional: security headers for UI
|
||||||
@@ -28,19 +28,19 @@ metadata:
|
|||||||
name: nextcloud-security-headers
|
name: nextcloud-security-headers
|
||||||
spec:
|
spec:
|
||||||
headers:
|
headers:
|
||||||
stsSeconds: 31536000
|
|
||||||
stsIncludeSubdomains: true
|
|
||||||
stsPreload: true
|
|
||||||
browserXssFilter: true
|
browserXssFilter: true
|
||||||
contentTypeNosniff: true
|
contentTypeNosniff: true
|
||||||
frameDeny: true
|
frameDeny: false
|
||||||
referrerPolicy: "no-referrer"
|
referrerPolicy: "no-referrer"
|
||||||
|
stsSeconds: 15552000
|
||||||
|
stsIncludeSubdomains: true
|
||||||
|
stsPreload: true
|
||||||
customResponseHeaders:
|
customResponseHeaders:
|
||||||
X-Content-Type-Options: "nosniff"
|
X-Content-Type-Options: "nosniff"
|
||||||
X-Frame-Options: "DENY"
|
X-Frame-Options: "SAMEORIGIN"
|
||||||
X-XSS-Protection: "1; mode=block"
|
X-XSS-Protection: "1; mode=block"
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
apiVersion: traefik.io/v1alpha1
|
apiVersion: traefik.io/v1alpha1
|
||||||
kind: Middleware
|
kind: Middleware
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
Reference in New Issue
Block a user