Use CSP config only in gitea
This commit is contained in:
parent
801bc6f07d
commit
dc1bb22d9d
|
@ -69,7 +69,14 @@
|
||||||
"git.coolneng.duckdns.org" = {
|
"git.coolneng.duckdns.org" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
locations."/".proxyPass = "http://localhost:3000/";
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:3000/";
|
||||||
|
extraConfig = ''
|
||||||
|
${config.services.nginx.commonHttpConfig}
|
||||||
|
# Disable embedding as a frame, except from the same origin
|
||||||
|
add_header Content-Security-Policy "frame-src git.coolneng.duckdns.org; frame-ancestors git.coolneng.duckdns.org";
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
"rss.coolneng.duckdns.org" = {
|
"rss.coolneng.duckdns.org" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
Loading…
Reference in New Issue