aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2018-09-09 22:10:38 +0200
committerRigel Kent <sendmemail@rigelk.eu>2018-09-09 22:10:38 +0200
commit6328da8c017cf00d3c0ac8824ec5af128f6db42e (patch)
tree462f5c2e705a8013a614c9a0ed4e382ed55032e8 /server.ts
parent20c3a59e2c81bb00be943ccc51efe175c08eaa4e (diff)
downloadPeerTube-6328da8c017cf00d3c0ac8824ec5af128f6db42e.tar.gz
PeerTube-6328da8c017cf00d3c0ac8824ec5af128f6db42e.tar.zst
PeerTube-6328da8c017cf00d3c0ac8824ec5af128f6db42e.zip
make HSTS opt-in and leave it to the reverse-proxy
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index 2db39ab06..76d00edd3 100644
--- a/server.ts
+++ b/server.ts
@@ -55,7 +55,8 @@ app.set('trust proxy', CONFIG.TRUST_PROXY)
55app.use(helmet({ 55app.use(helmet({
56 frameguard: { 56 frameguard: {
57 action: 'deny' // we only allow it for /videos/embed, see server/controllers/client.ts 57 action: 'deny' // we only allow it for /videos/embed, see server/controllers/client.ts
58 } 58 },
59 hsts: false
59})) 60}))
60 61
61// ----------- Database ----------- 62// ----------- Database -----------