Skip to content

Commit 6ede35d

Browse files
Merge pull request #141 from Scvtt/main
Fix: Easypanel guide add trusted proxy config for Pelican Panel file upload issues
2 parents a455e40 + 631f3a9 commit 6ede35d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/guides/easypanel.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ For a basic setup using SQLite as the database, you can use the following servic
1717
"type": "image",
1818
"image": "ghcr.io/pelican-dev/panel:latest"
1919
},
20-
"env": "XDG_DATA_HOME: /pelican-data\nAPP_URL: \"https://$(EASYPANEL_DOMAIN)\"\nCADDY_URL: \"http://$(EASYPANEL_DOMAIN)\"",
20+
"env": "XDG_DATA_HOME: /pelican-data\nAPP_URL: \"https://$(EASYPANEL_DOMAIN)\"\nCADDY_URL: \"http://$(EASYPANEL_DOMAIN)\"\nTRUSTED_PROXIES: \"10.0.0.0/8,172.16.0.0/12\"",
2121
"domains": [
2222
{
2323
"host": "$(EASYPANEL_DOMAIN)",
@@ -37,7 +37,7 @@ For a basic setup using SQLite as the database, you can use the following servic
3737
},
3838
{
3939
"type": "file",
40-
"content": "{\n admin off\n auto_https off\n}\n\n{$CADDY_URL} {\n root * /var/www/html/public\n encode gzip\n\n php_fastcgi 127.0.0.1:9000\n file_server\n}",
40+
"content": "{\n admin off\n auto_https off\n\n servers {\n trusted_proxies static 10.0.0.0/8 172.16.0.0/12\n }\n}\n\n{$CADDY_URL} {\n root * /var/www/html/public\n encode gzip\n\n php_fastcgi 127.0.0.1:9000\n file_server\n}",
4141
"mountPath": "/etc/caddy/Caddyfile"
4242
}
4343
]
@@ -62,7 +62,7 @@ For a more advanced setup using MariaDB and Redis, use this template:
6262
"type": "image",
6363
"image": "ghcr.io/pelican-dev/panel:latest"
6464
},
65-
"env": "XDG_DATA_HOME: /pelican-data\nAPP_URL: \"https://$(EASYPANEL_DOMAIN)\"\nCADDY_URL: \"http://$(EASYPANEL_DOMAIN)\"",
65+
"env": "XDG_DATA_HOME: /pelican-data\nAPP_URL: \"https://$(EASYPANEL_DOMAIN)\"\nCADDY_URL: \"http://$(EASYPANEL_DOMAIN)\"\nTRUSTED_PROXIES: \"10.0.0.0/8,172.16.0.0/12,192.168.0.0/16\"",
6666
"domains": [
6767
{
6868
"host": "$(EASYPANEL_DOMAIN)",
@@ -82,7 +82,7 @@ For a more advanced setup using MariaDB and Redis, use this template:
8282
},
8383
{
8484
"type": "file",
85-
"content": "{\n admin off\n auto_https off\n}\n\n{$CADDY_URL} {\n root * /var/www/html/public\n encode gzip\n\n php_fastcgi 127.0.0.1:9000\n file_server\n}",
85+
"content": "{\n admin off\n auto_https off\n\n servers {\n trusted_proxies static 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16\n }\n}\n\n{$CADDY_URL} {\n root * /var/www/html/public\n encode gzip\n\n php_fastcgi 127.0.0.1:9000\n file_server\n}",
8686
"mountPath": "/etc/caddy/Caddyfile"
8787
}
8888
]

0 commit comments

Comments
 (0)