mirror of
https://github.com/pterodactyl/documentation.git
synced 2025-12-10 00:09:39 -06:00
Co-authored-by: Daniel Barton <danielb@purpleflaghosting.com> Co-authored-by: Louis Ravignot Dos Santos <louis.rds@akticube.fr>
50 lines
1.1 KiB
Caddyfile
50 lines
1.1 KiB
Caddyfile
{
|
|
servers :80 {
|
|
timeouts {
|
|
read_body 120s
|
|
}
|
|
}
|
|
}
|
|
|
|
# Replace the example <domain> with your domain name or IP address
|
|
<domain>:80 {
|
|
root * /var/www/pterodactyl/public
|
|
|
|
file_server
|
|
|
|
php_fastcgi unix//run/php/php8.3-fpm.sock {
|
|
root /var/www/pterodactyl/public
|
|
index index.php
|
|
|
|
env PHP_VALUE "upload_max_filesize = 100M
|
|
post_max_size = 100M"
|
|
env HTTP_PROXY ""
|
|
# env HTTPS "on" # IMPORTANT: this is commented out, to disable HTTPS
|
|
|
|
read_timeout 300s
|
|
dial_timeout 300s
|
|
write_timeout 300s
|
|
}
|
|
|
|
header Strict-Transport-Security "max-age=16768000; preload;"
|
|
header X-Content-Type-Options "nosniff"
|
|
header X-XSS-Protection "1; mode=block;"
|
|
header X-Robots-Tag "none"
|
|
header Content-Security-Policy "frame-ancestors 'self'"
|
|
header X-Frame-Options "DENY"
|
|
header Referrer-Policy "same-origin"
|
|
|
|
request_body {
|
|
max_size 100m
|
|
}
|
|
|
|
respond /.ht* 403
|
|
|
|
log {
|
|
output file /var/log/caddy/pterodactyl.log {
|
|
roll_size 100MiB
|
|
roll_keep_for 7d
|
|
}
|
|
level INFO
|
|
}
|
|
} |