Skip to content

Commit

Permalink
Update Caddyfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr authored Apr 13, 2024
1 parent 6ed1ddf commit 274c45f
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions .caddy/strfry/Caddyfile
Original file line number Diff line number Diff line change
@@ -1,30 +1,6 @@
$YOUR_RELAY_URL {
log {
output file /var/log/caddy/$YOUR_RELAY_URL.log {
roll_size 10mb
roll_keep 20
roll_keep_for 720h
}
}

@options method OPTIONS
respond @options 204
header {
Access-Control-Allow-Methods "GET, OPTIONS"
Access-Control-Max-Age 0
Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0"

X-Frame-Options "DENY"
Permissions-Policy "geolocation=(self), microphone=(), camera=()"
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
X-Content-Type-Options nosniff
Referrer-Policy "no-referrer"
}

handle_path /.well-known/* {
root * /var/www/.well-known
file_server
}
#...other stuff

@websocket {
header Upgrade websocket
Expand Down

0 comments on commit 274c45f

Please sign in to comment.