diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 6b8705bf..c6799f92 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -17,6 +17,10 @@ jobs: - name: Checkout uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - name: Install dependencies run: yarn install --frozen-lockfile diff --git a/.snippets/webservers/Caddyfile b/.snippets/webservers/Caddyfile new file mode 100644 index 00000000..725edd85 --- /dev/null +++ b/.snippets/webservers/Caddyfile @@ -0,0 +1,48 @@ +{ + 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 \n 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..1b796e0f --- /dev/null +++ b/.snippets/webservers/Caddyfile-nossl @@ -0,0 +1,48 @@ +{ + 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 \n 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/Home.vue b/.vuepress/theme/Home.vue index 5ee7b226..ee60bc38 100644 --- a/.vuepress/theme/Home.vue +++ b/.vuepress/theme/Home.vue @@ -135,7 +135,7 @@