additional security fixes for nextcloud
This commit is contained in:
1 parent
2694f65f9a
commit
4795af4864
2 files changed
+26
No files matched your search
@@ -1,3 +1,16 @@
|
||||
nextcloud:
|
||||
nextcloud:
|
||||
host: "nextcloud.home.sosnovsky.ca"
|
||||
|
||||
defaultConfigs:
|
||||
proxy.config.php: |-
|
||||
<?php
|
||||
$CONFIG = array (
|
||||
'trusted_proxies' => array(
|
||||
0 => '127.0.0.1',
|
||||
1 => '10.0.0.0/8',
|
||||
),
|
||||
'overwritehost' => 'nextcloud.home.sosnovsky.ca',
|
||||
'overwriteprotocol' => 'https',
|
||||
'forwarded_for_headers' => array('HTTP_X_FORWARDED_FOR'),
|
||||
);
|
||||
@@ -8,6 +8,7 @@ spec:
|
||||
chain:
|
||||
middlewares:
|
||||
- name: https-only
|
||||
- name: strict-transport
|
||||
- name: well-known
|
||||
|
||||
---
|
||||
@@ -31,3 +32,15 @@ metadata:
|
||||
spec:
|
||||
redirectScheme:
|
||||
scheme: https
|
||||
|
||||
---
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: strict-transport
|
||||
spec:
|
||||
headers:
|
||||
customRequestHeaders:
|
||||
"Strict-Transport-Security": "max-age=15552000; includeSubDomains"
|
||||
customResponseHeaders:
|
||||
"Strict-Transport-Security": "max-age=15552000; includeSubDomains"
|
||||
Reference in new issue
Block a user