Skip to content

Commit

Permalink
reverted hugo config to single file, server headers are always used l…
Browse files Browse the repository at this point in the history
…ocally
  • Loading branch information
tobihagemann committed Jul 18, 2024
1 parent 96e1d2f commit 958a8a6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
7 changes: 0 additions & 7 deletions config/development/server.toml

This file was deleted.

7 changes: 0 additions & 7 deletions config/production/server.toml

This file was deleted.

8 changes: 8 additions & 0 deletions config/_default/hugo.toml → hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,11 @@ block = true

[permalinks]
blog = "/blog/:year/:month/:day/:slug/"

[server]
[[server.headers]]
for = '/**'
[server.headers.values]
Content-Security-Policy = "default-src 'none'; script-src 'self' 'unsafe-eval' https://community.cryptomator.org/ https://js.stripe.com/ https://*.paddle.com/ https://www.google.com/ https://www.gstatic.com/; style-src 'self' 'unsafe-inline' https://*.paddle.com/; img-src 'self' data: https://static.cryptomator.org/ https://i.ytimg.com/ https://*.paddle.com/ https://paddle.s3.amazonaws.com/; connect-src 'self' https://api.cryptomator.org/ https://store.cryptomator.org/ http://localhost:8787/ https://api.github.com/; font-src 'self'; media-src https://static.cryptomator.org/; frame-src https://community.cryptomator.org/ https://www.youtube-nocookie.com/ https://js.stripe.com/ https://*.paddle.com/ https://www.google.com/; base-uri 'self'; form-action 'self' https://www.paypal.com/ https://www.coinpayments.net/; frame-ancestors 'none'"
Strict-Transport-Security = "max-age=31536000; includeSubDomains"
X-Content-Type-Options = "nosniff"

0 comments on commit 958a8a6

Please sign in to comment.