diff --git a/.snippets/webservers/Caddyfile b/.snippets/webservers/Caddyfile new file mode 100644 index 00000000..0755b23c --- /dev/null +++ b/.snippets/webservers/Caddyfile @@ -0,0 +1,49 @@ +{ + servers :443 { + timeouts { + read_body 120s + } + } +} + + { + root * /var/www/pterodactyl/public + + file_server + + php_fastcgi unix//run/php/php8.1-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" + + 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 + } +} \ No newline at end of file diff --git a/.snippets/webservers/Caddyfile-nossl b/.snippets/webservers/Caddyfile-nossl new file mode 100644 index 00000000..4762d034 --- /dev/null +++ b/.snippets/webservers/Caddyfile-nossl @@ -0,0 +1,49 @@ +{ + servers :80 { + timeouts { + read_body 120s + } + } +} + +:80 { + root * /var/www/pterodactyl/public + + file_server + + php_fastcgi unix//run/php/php8.1-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 + } +} \ No newline at end of file diff --git a/.vuepress/config.js b/.vuepress/config.js index e1206705..736bfcee 100644 --- a/.vuepress/config.js +++ b/.vuepress/config.js @@ -74,8 +74,7 @@ module.exports = { children: [ '/community/installation-guides/panel/centos7.md', '/community/installation-guides/panel/centos8.md', - '/community/installation-guides/panel/debian10.md', - '/community/installation-guides/panel/debian11.md', + '/community/installation-guides/panel/debian.md', ] }, { @@ -84,8 +83,7 @@ module.exports = { children: [ '/community/installation-guides/wings/centos7.md', '/community/installation-guides/wings/centos8.md', - '/community/installation-guides/wings/debian10.md', - '/community/installation-guides/wings/debian11.md', + '/community/installation-guides/wings/debian.md', ] }, { diff --git a/.vuepress/theme/Layout.vue b/.vuepress/theme/Layout.vue index 5ce4e23f..fc9ffba8 100644 --- a/.vuepress/theme/Layout.vue +++ b/.vuepress/theme/Layout.vue @@ -1,16 +1,7 @@