refs #739: align Smilegate with application repository layout
This commit is contained in:
58
deploy/ai-web-agent-console/caddy/Caddyfile
Normal file
58
deploy/ai-web-agent-console/caddy/Caddyfile
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
servers {
|
||||
protocols h1 h2
|
||||
}
|
||||
}
|
||||
|
||||
http://193.122.114.213 {
|
||||
encode zstd gzip
|
||||
header {
|
||||
X-Content-Type-Options nosniff
|
||||
Referrer-Policy strict-origin-when-cross-origin
|
||||
}
|
||||
log {
|
||||
output file /var/log/caddy/smilegate-console-access.log
|
||||
format console
|
||||
}
|
||||
reverse_proxy 127.0.0.1:8622 {
|
||||
transport http {
|
||||
versions 1.1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
smilegate.cloud-handson.com {
|
||||
encode zstd gzip
|
||||
header {
|
||||
X-Content-Type-Options nosniff
|
||||
Referrer-Policy strict-origin-when-cross-origin
|
||||
}
|
||||
log {
|
||||
output file /var/log/caddy/smilegate-console-access.log
|
||||
format console
|
||||
}
|
||||
reverse_proxy 127.0.0.1:8622 {
|
||||
transport http {
|
||||
versions 1.1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
smilegate-backoffice.cloud-handson.com {
|
||||
# Edge clients have left completed zstd-compressed HTML navigations pending.
|
||||
# Use broadly supported gzip on the management UI; the console keeps zstd.
|
||||
encode gzip
|
||||
header {
|
||||
X-Content-Type-Options nosniff
|
||||
Referrer-Policy strict-origin-when-cross-origin
|
||||
}
|
||||
log {
|
||||
output file /var/log/caddy/smilegate-backoffice-access.log
|
||||
format console
|
||||
}
|
||||
reverse_proxy 127.0.0.1:8082 {
|
||||
transport http {
|
||||
versions 1.1
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=Smilegate PoC4 Portal Authentication Gateway
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=opc
|
||||
Group=opc
|
||||
WorkingDirectory=/home/opc/workspaces/vpd-permission-poc-20260628213409/poc4_active_source_20260714
|
||||
EnvironmentFile=/etc/smilegate/backoffice.env
|
||||
EnvironmentFile=/etc/smilegate/poc4-console.env
|
||||
ExecStart=/opt/smilegate/poc4-console/venv/bin/python /home/opc/workspaces/vpd-permission-poc-20260628213409/poc4_active_source_20260714/apps/poc4/portal_auth_gateway.py
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,3 @@
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=/opt/smilegate/poc4-console/venv/bin/streamlit run /home/opc/workspaces/vpd-permission-poc-20260628213409/poc4_active_source_20260714/apps/smilegate_demo/main.py --server.address 127.0.0.1 --server.port 8622 --server.headless true --server.enableCORS false --server.enableXsrfProtection false --browser.serverAddress smilegate.cloud-handson.com --browser.serverPort 443 --browser.gatherUsageStats false --logger.level=warn
|
||||
Reference in New Issue
Block a user