@@ -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\n APP_URL: \" https://$(EASYPANEL_DOMAIN)\"\n CADDY_URL: \" http://$(EASYPANEL_DOMAIN)\" " ,
20+ "env" : " XDG_DATA_HOME: /pelican-data\n APP_URL: \" https://$(EASYPANEL_DOMAIN)\"\n CADDY_URL: \" http://$(EASYPANEL_DOMAIN)\"\n TRUSTED_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\n APP_URL: \" https://$(EASYPANEL_DOMAIN)\"\n CADDY_URL: \" http://$(EASYPANEL_DOMAIN)\" " ,
65+ "env" : " XDG_DATA_HOME: /pelican-data\n APP_URL: \" https://$(EASYPANEL_DOMAIN)\"\n CADDY_URL: \" http://$(EASYPANEL_DOMAIN)\"\n TRUSTED_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