mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-22 00:52:43 +01:00
nix&docker: simplify Caddyfile
This commit is contained in:
parent
4138fb7497
commit
5fbc7a89e4
11
.github/docker/Caddyfile
vendored
11
.github/docker/Caddyfile
vendored
@ -17,14 +17,5 @@
|
|||||||
trusted_proxies 172.20.0.0/16
|
trusted_proxies 172.20.0.0/16
|
||||||
}
|
}
|
||||||
|
|
||||||
@startsWithDot {
|
try_files {path} {path}/ /index.php?{query}
|
||||||
path \/\.
|
|
||||||
not path .well-known
|
|
||||||
}
|
|
||||||
rewrite @startsWithDot /index.php{uri}
|
|
||||||
|
|
||||||
@phpRewrite {
|
|
||||||
not file favicon.ico
|
|
||||||
}
|
|
||||||
try_files @phpRewrite {path} {path}/ /index.php?{query}
|
|
||||||
}
|
}
|
||||||
|
11
flake.nix
11
flake.nix
@ -80,16 +80,7 @@
|
|||||||
|
|
||||||
php_fastcgi localhost:9000
|
php_fastcgi localhost:9000
|
||||||
|
|
||||||
@startsWithDot {
|
try_files {path} {path}/ /index.php?{query}
|
||||||
path \/\.
|
|
||||||
not path .well-known
|
|
||||||
}
|
|
||||||
rewrite @startsWithDot /index.php{uri}
|
|
||||||
|
|
||||||
@phpRewrite {
|
|
||||||
not file favicon.ico
|
|
||||||
}
|
|
||||||
try_files @phpRewrite {path} {path}/ /index.php?{query}
|
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user