docker: overhaul container image
This commit is contained in:
parent
c475d601f3
commit
490690f1d0
12 changed files with 188 additions and 366 deletions
30
.github/docker/Caddyfile
vendored
Normal file
30
.github/docker/Caddyfile
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
:8080 {
|
||||
root * /var/www/pterodactyl/public/
|
||||
file_server
|
||||
|
||||
header {
|
||||
-Server
|
||||
-X-Powered-By
|
||||
Referrer-Policy "same-origin"
|
||||
X-Frame-Options "deny"
|
||||
X-XSS-Protection "1; mode=block"
|
||||
X-Content-Type-Options "nosniff"
|
||||
}
|
||||
|
||||
encode gzip zstd
|
||||
|
||||
php_fastcgi 127.0.0.1:9000 {
|
||||
trusted_proxies 172.20.0.0/16
|
||||
}
|
||||
|
||||
@startsWithDot {
|
||||
path \/\.
|
||||
not path .well-known
|
||||
}
|
||||
rewrite @startsWithDot /index.php{uri}
|
||||
|
||||
@phpRewrite {
|
||||
not file favicon.ico
|
||||
}
|
||||
try_files @phpRewrite {path} {path}/ /index.php?{query}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue