mirror of
https://github.com/remnawave/panel.git
synced 2026-04-13 01:34:23 +00:00
–
This commit is contained in:
12
Caddyfile
12
Caddyfile
@@ -16,16 +16,20 @@
|
||||
respond "OK" 200
|
||||
}
|
||||
|
||||
handle @notMainDomain {
|
||||
@notMainDomain {
|
||||
not header Host docs.rw
|
||||
redir https://docs.rw{uri} permanent
|
||||
}
|
||||
redir @notMainDomain https://docs.rw{uri} permanent
|
||||
|
||||
@mainDomain {
|
||||
header Host docs.rw
|
||||
}
|
||||
|
||||
handle {
|
||||
handle @mainDomain {
|
||||
root * /app/build
|
||||
encode gzip
|
||||
try_files {path} /index.html
|
||||
file_server
|
||||
try_files {path} /index.html
|
||||
|
||||
header {
|
||||
X-Content-Type-Options "nosniff"
|
||||
|
||||
Reference in New Issue
Block a user