1
0
Fork 0

forgejo: Improve HTTP config

This commit is contained in:
Daniel Kempkens 2023-09-17 00:42:19 +02:00
parent c5b227207e
commit 5e9db13397
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -58,9 +58,13 @@ in
quic = true;
http3 = true;
onlySSL = true;
forceSSL = true;
useACMEHost = "kempkens.io";
extraConfig = ''
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
'';
locations."/" = {
recommendedProxySettings = true;
proxyPass = "http://unix:/run/gitea/gitea.sock";