Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
docker-pterodactyl-legacy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
docker-pterodactyl-legacy
Commits
0308d093
Commit
0308d093
authored
May 02, 2017
by
Cameron Carney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed missing files
parent
7d33dd3e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
158 additions
and
0 deletions
+158
-0
manifest/etc/nginx/templates/http.conf.tmpl
manifest/etc/nginx/templates/http.conf.tmpl
+44
-0
manifest/etc/nginx/templates/https.conf.tmpl
manifest/etc/nginx/templates/https.conf.tmpl
+72
-0
manifest/etc/php7/php-fpm.conf
manifest/etc/php7/php-fpm.conf
+4
-0
manifest/etc/php7/php-fpm.d/www.conf
manifest/etc/php7/php-fpm.d/www.conf
+17
-0
manifest/etc/supervisor.d/nginx.ini
manifest/etc/supervisor.d/nginx.ini
+7
-0
manifest/etc/supervisor.d/php-fpm.ini
manifest/etc/supervisor.d/php-fpm.ini
+5
-0
manifest/etc/supervisor.d/pterodactyl-workers.ini
manifest/etc/supervisor.d/pterodactyl-workers.ini
+9
-0
No files found.
manifest/etc/nginx/templates/http.conf.tmpl
0 → 100644
View file @
0308d093
server {
listen 80;
listen [::]:80;
server_name ${PANEL_URL};
root /var/www/html/public;
index index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log off;
error_log /var/log/nginx/pterodactyl.app-error.log error;
# allow larger file uploads and longer script runtimes
client_max_body_size 100m;
client_body_timeout 120s;
sendfile off;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
fastcgi_intercept_errors off;
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
}
location ~ /\.ht {
deny all;
}
}
\ No newline at end of file
manifest/etc/nginx/templates/https.conf.tmpl
0 → 100644
View file @
0308d093
server {
listen 80;
listen [::]:80;
server_name ${PANEL_URL};
# enforce https
location ^ /.well-known {
alias /var/www/html/.well-known;
}
location / {
return 301 https://$server_name$request_uri;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name ${PANEL_URL};
root /var/www/html/public;
index index.php;
access_log /var/log/nginx/pterodactyl.app-access.log;
error_log /var/log/nginx/pterodactyl.app-error.log error;
# allow larger file uploads and longer script runtimes
client_max_body_size 100m;
client_body_timeout 120s;
sendfile off;
# strengthen ssl security
ssl_certificate ${SSL_CERT};
ssl_certificate_key ${SSL_CERT_KEY};
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:ECDHE-RSA-AES128-GCM-SHA256:AES256+EECDH:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4";
# ssl_dhparam /etc/ssl/certs/dhparam.pem;
# Add headers to serve security related headers
add_header Strict-Transport-Security "max-age=15768000; preload;";
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header Content-Security-Policy "frame-ancestors 'self'";
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
fastcgi_intercept_errors off;
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
include /etc/nginx/fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
\ No newline at end of file
manifest/etc/php7/php-fpm.conf
0 → 100644
View file @
0308d093
[
global
]
pid
= /
var
/
run
/
php
-
fpm
.
pid
include
=/
etc
/
php7
/
php
-
fpm
.
d
/*.
conf
\ No newline at end of file
manifest/etc/php7/php-fpm.d/www.conf
0 → 100644
View file @
0308d093
[
www
]
user
=
nginx
group
=
nginx
listen
= /
var
/
run
/
php
-
fpm
.
sock
listen
.
owner
=
nginx
listen
.
group
=
nginx
listen
.
mode
=
0750
pm
=
ondemand
pm
.
max_children
=
9
pm
.
process_idle_timeout
=
10
s
pm
.
max_requests
=
200
slowlog
= /
dev
/
stdout
request_slowlog_timeout
=
60
s
catch_workers_output
=
yes
\ No newline at end of file
manifest/etc/supervisor.d/nginx.ini
0 → 100644
View file @
0308d093
[program:nginx]
command
=
/usr/sbin/nginx
autostart
=
true
autorestart
=
true
priority
=
10
stdout_events_enabled
=
true
stderr_events_enabled
=
true
\ No newline at end of file
manifest/etc/supervisor.d/php-fpm.ini
0 → 100644
View file @
0308d093
[program:php-fpm]
command
=
/usr/sbin/php-fpm7 --nodaemonize -c /etc/php7
autostart
=
true
autorestart
=
true
priority
=
5
manifest/etc/supervisor.d/pterodactyl-workers.ini
0 → 100644
View file @
0308d093
[program:pterodactyl-worker]
process_name
=
%(program_name)s_%(process_num)02d
command
=
php /var/www/html/artisan queue:work database --queue=high,standard,low --sleep=3 --tries=3
autostart
=
true
autorestart
=
true
user
=
nginx
numprocs
=
2
redirect_stderr
=
true
stdout_logfile
=
/var/www/html/storage/logs/queue-worker.log
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment