[INFRA-287] Fix: AIO Docker Image build failure (#8311)

* refactor: update build scripts and supervisor configuration

* Changed Caddyfile source in build.sh to use Caddyfile.aio.ce
* Updated Dockerfile to copy web assets from the correct directory
* Modified supervisor.conf to remove web and admin program configurations, and updated space program command to use react-router-serve

* chore: remove obsolete Caddyfile.aio.ce configuration

* chore: clean up Dockerfile by removing redundant cache removal command

* fix: update live program command to use .mjs extension in supervisor configuration

* fix: update live program command in supervisor configuration to remove .mjs extension

* fix: update reverse proxy ports in Caddyfile.aio.ce configuration

* fix: correct reverse proxy addresses in Caddyfile.aio.ce configuration

* refactor: remove outdated reverse proxy address updates from build script
This commit is contained in:
Akshat Jain
2025-12-11 18:06:27 +05:30
committed by GitHub
parent 7b41ffa08e
commit 58e48a995b
4 changed files with 53 additions and 42 deletions

View File

@@ -0,0 +1,46 @@
(plane_proxy) {
request_body {
max_size {$FILE_SIZE_LIMIT}
}
handle /spaces/* {
reverse_proxy localhost:3002
}
handle /live/* {
reverse_proxy locahost:3005
}
handle /api/* {
reverse_proxy localhost:3004
}
handle /auth/* {
reverse_proxy localhost:3004
}
handle_path /god-mode* {
root * /app/admin
try_files {path} {path}/ /index.html
file_server
}
handle_path /* {
root * /app/web
try_files {path} {path}/ /index.html
file_server
}
}
{
{$CERT_EMAIL}
acme_ca {$CERT_ACME_CA:https://acme-v02.api.letsencrypt.org/directory}
{$CERT_ACME_DNS}
servers {
max_header_size 25MB
client_ip_headers X-Forwarded-For X-Real-IP
trusted_proxies static {$TRUSTED_PROXIES:0.0.0.0/0}
}
}
{$SITE_ADDRESS} {
import plane_proxy
}