Skip to content

Commit 369fa55

Browse files
PadowYT2danny6167LouissXI
authored
Edits to the documentation (#553)
Co-authored-by: Daniel Barton <[email protected]> Co-authored-by: Louis Ravignot Dos Santos <[email protected]>
1 parent e216789 commit 369fa55

22 files changed

+309
-206
lines changed

.snippets/webservers/Caddyfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
}
77
}
88

9+
# Replace the example <domain> with your domain name or IP address
910
<domain> {
1011
root * /var/www/pterodactyl/public
1112

1213
file_server
1314

14-
php_fastcgi unix//run/php/php8.1-fpm.sock {
15+
php_fastcgi unix//run/php/php8.3-fpm.sock {
1516
root /var/www/pterodactyl/public
1617
index index.php
1718

.snippets/webservers/Caddyfile-nossl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
}
77
}
88

9+
# Replace the example <domain> with your domain name or IP address
910
<domain>:80 {
1011
root * /var/www/pterodactyl/public
1112

1213
file_server
1314

14-
php_fastcgi unix//run/php/php8.1-fpm.sock {
15+
php_fastcgi unix//run/php/php8.3-fpm.sock {
1516
root /var/www/pterodactyl/public
1617
index index.php
1718

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
<VirtualHost *:80>
2-
ServerName <domain>
3-
DocumentRoot "/var/www/pterodactyl/public"
4-
5-
AllowEncodedSlashes On
6-
7-
php_value upload_max_filesize 100M
8-
php_value post_max_size 100M
9-
10-
<Directory "/var/www/pterodactyl/public">
11-
AllowOverride all
12-
Require all granted
13-
</Directory>
2+
# Replace the example <domain> with your domain name or IP address
3+
ServerName <domain>
4+
DocumentRoot "/var/www/pterodactyl/public"
5+
6+
AllowEncodedSlashes On
7+
8+
php_value upload_max_filesize 100M
9+
php_value post_max_size 100M
10+
11+
<Directory "/var/www/pterodactyl/public">
12+
AllowOverride all
13+
Require all granted
14+
</Directory>
1415
</VirtualHost>

.snippets/webservers/apache.conf

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
<VirtualHost *:80>
2-
ServerName <domain>
3-
4-
RewriteEngine On
5-
RewriteCond %{HTTPS} !=on
6-
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
2+
# Replace the example <domain> with your domain name or IP address
3+
ServerName <domain>
4+
5+
RewriteEngine On
6+
RewriteCond %{HTTPS} !=on
7+
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
78
</VirtualHost>
89

910
<VirtualHost *:443>
10-
ServerName <domain>
11-
DocumentRoot "/var/www/pterodactyl/public"
11+
# Replace the example <domain> with your domain name or IP address
12+
ServerName <domain>
13+
DocumentRoot "/var/www/pterodactyl/public"
14+
15+
AllowEncodedSlashes On
1216

13-
AllowEncodedSlashes On
14-
15-
php_value upload_max_filesize 100M
16-
php_value post_max_size 100M
17+
php_value upload_max_filesize 100M
18+
php_value post_max_size 100M
1719

18-
<Directory "/var/www/pterodactyl/public">
19-
Require all granted
20-
AllowOverride all
21-
</Directory>
20+
<Directory "/var/www/pterodactyl/public">
21+
Require all granted
22+
AllowOverride all
23+
</Directory>
2224

23-
SSLEngine on
24-
SSLCertificateFile /etc/letsencrypt/live/<domain>/fullchain.pem
25-
SSLCertificateKeyFile /etc/letsencrypt/live/<domain>/privkey.pem
25+
SSLEngine on
26+
SSLCertificateFile /etc/letsencrypt/live/<domain>/fullchain.pem
27+
SSLCertificateKeyFile /etc/letsencrypt/live/<domain>/privkey.pem
2628
</VirtualHost>

.snippets/webservers/nginx-php8.1-nossl.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ server {
33
listen 80;
44
server_name <domain>;
55

6-
76
root /var/www/pterodactyl/public;
87
index index.html index.htm index.php;
98
charset utf-8;
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
server {
2+
# Replace the example <domain> with your domain name or IP address
3+
listen 80;
4+
server_name <domain>;
5+
6+
root /var/www/pterodactyl/public;
7+
index index.html index.htm index.php;
8+
charset utf-8;
9+
10+
location / {
11+
try_files $uri $uri/ /index.php?$query_string;
12+
}
13+
14+
location = /favicon.ico { access_log off; log_not_found off; }
15+
location = /robots.txt { access_log off; log_not_found off; }
16+
17+
access_log off;
18+
error_log /var/log/nginx/pterodactyl.app-error.log error;
19+
20+
# allow larger file uploads and longer script runtimes
21+
client_max_body_size 100m;
22+
client_body_timeout 120s;
23+
24+
sendfile off;
25+
26+
location ~ \.php$ {
27+
fastcgi_split_path_info ^(.+\.php)(/.+)$;
28+
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
29+
fastcgi_index index.php;
30+
include fastcgi_params;
31+
fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
32+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
33+
fastcgi_param HTTP_PROXY "";
34+
fastcgi_intercept_errors off;
35+
fastcgi_buffer_size 16k;
36+
fastcgi_buffers 4 16k;
37+
fastcgi_connect_timeout 300;
38+
fastcgi_send_timeout 300;
39+
fastcgi_read_timeout 300;
40+
}
41+
42+
location ~ /\.ht {
43+
deny all;
44+
}
45+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
server {
2+
# Replace the example <domain> with your domain name or IP address
3+
listen 80;
4+
server_name <domain>;
5+
return 301 https://$server_name$request_uri;
6+
}
7+
8+
server {
9+
# Replace the example <domain> with your domain name or IP address
10+
listen 443 ssl http2;
11+
server_name <domain>;
12+
13+
root /var/www/pterodactyl/public;
14+
index index.php;
15+
16+
access_log /var/log/nginx/pterodactyl.app-access.log;
17+
error_log /var/log/nginx/pterodactyl.app-error.log error;
18+
19+
# allow larger file uploads and longer script runtimes
20+
client_max_body_size 100m;
21+
client_body_timeout 120s;
22+
23+
sendfile off;
24+
25+
# SSL Configuration - Replace the example <domain> with your domain
26+
ssl_certificate /etc/letsencrypt/live/<domain>/fullchain.pem;
27+
ssl_certificate_key /etc/letsencrypt/live/<domain>/privkey.pem;
28+
ssl_session_cache shared:SSL:10m;
29+
ssl_protocols TLSv1.2 TLSv1.3;
30+
ssl_ciphers "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384";
31+
ssl_prefer_server_ciphers on;
32+
33+
# See https://hstspreload.org/ before uncommenting the line below.
34+
# add_header Strict-Transport-Security "max-age=15768000; preload;";
35+
add_header X-Content-Type-Options nosniff;
36+
add_header X-XSS-Protection "1; mode=block";
37+
add_header X-Robots-Tag none;
38+
add_header Content-Security-Policy "frame-ancestors 'self'";
39+
add_header X-Frame-Options DENY;
40+
add_header Referrer-Policy same-origin;
41+
42+
location / {
43+
try_files $uri $uri/ /index.php?$query_string;
44+
}
45+
46+
location ~ \.php$ {
47+
fastcgi_split_path_info ^(.+\.php)(/.+)$;
48+
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
49+
fastcgi_index index.php;
50+
include fastcgi_params;
51+
fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
52+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
53+
fastcgi_param HTTP_PROXY "";
54+
fastcgi_intercept_errors off;
55+
fastcgi_buffer_size 16k;
56+
fastcgi_buffers 4 16k;
57+
fastcgi_connect_timeout 300;
58+
fastcgi_send_timeout 300;
59+
fastcgi_read_timeout 300;
60+
include /etc/nginx/fastcgi_params;
61+
}
62+
63+
location ~ /\.ht {
64+
deny all;
65+
}
66+
}

.vuepress/theme/Home.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
</a>
147147
</div>
148148
</div>
149-
<div class="footer">MIT Licensed | Pterodactyl&reg; Copyright &copy; 2015 - 2022 Dane Everitt & contributors.</div>
149+
<div class="footer">MIT Licensed | Pterodactyl&reg; Copyright &copy; Dane Everitt and contributors</div>
150150
</div>
151151
</div>
152152
</div>

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 Pterodactyl
3+
Copyright © Pterodactyl
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ features:
1010
details: Built on a modern stack utilizing the best design practices that make it easy to jump in and make modifications.
1111
- title: Docker to the Core
1212
details: All servers run in isolated Docker containers that limit attack vectors, provide strict resource limits, and provide environments tailored to each specific game.
13-
footer: MIT Licensed | Copyright © 2015 - 2018 Dane Everitt & Contributors
13+
footer: MIT Licensed | Copyright © Dane Everitt and contributors
1414
---

0 commit comments

Comments
 (0)