diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2018-09-09 22:10:38 +0200 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2018-09-09 22:10:38 +0200 |
commit | 6328da8c017cf00d3c0ac8824ec5af128f6db42e (patch) | |
tree | 462f5c2e705a8013a614c9a0ed4e382ed55032e8 /server.ts | |
parent | 20c3a59e2c81bb00be943ccc51efe175c08eaa4e (diff) | |
download | PeerTube-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.ts | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -55,7 +55,8 @@ app.set('trust proxy', CONFIG.TRUST_PROXY) | |||
55 | app.use(helmet({ | 55 | app.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 ----------- |