Files
ERP-core/deploy/on-hold/apache/test-erp.hexdive.com.conf
T
ImanThiyanga 8e472ac996
CI/CD - ERP Core / scripts (pull_request) Failing after 12m21s
CI/CD - ERP Core / e2e-typecheck (pull_request) Failing after 13m13s
CI/CD - ERP Core / frontend (pull_request) Failing after 14m5s
CI/CD - ERP Core / backend (pull_request) Failing after 14m57s
CI/CD - ERP Core / detect (pull_request) Failing after 13m42s
CI/CD - ERP Core / Build & Deploy (pull_request) Failing after 12m47s
CI/CD - ERP Core / ci-ok (pull_request) Failing after 14m58s
initialising for ci-cd pipeline
2026-09-16 11:53:55 +05:30

36 lines
1.6 KiB
Plaintext

# ERP-Core TEST environment (deployed from the Dev branch) — docs/40-DEPLOYMENT.md §4.
#
# Install: cp deploy/apache/test-erp.hexdive.com.conf /etc/httpd/conf.d/
# apachectl configtest && systemctl reload httpd
# certbot --apache -d test-erp.hexdive.com
# certbot copies this vhost to :443 with the certificate and turns :80 into a redirect to https.
# The session cookies are Secure + SameSite=Strict, so login only works over HTTPS.
# Needs mod_proxy, mod_proxy_http, mod_headers, mod_ssl and SELinux httpd_can_network_connect=on.
<VirtualHost *:80>
ServerName test-erp.hexdive.com
ProxyRequests Off
ProxyPreserveHost On
ProxyTimeout 120
RequestHeader set X-Forwarded-Proto expr=%{REQUEST_SCHEME}
Header always set Strict-Transport-Security "max-age=31536000" "expr=%{HTTPS} == 'on'"
Header always set X-Content-Type-Options "nosniff"
# Test data must never end up in search results.
Header always set X-Robots-Tag "noindex, nofollow"
# HR documents are capped at 10 MB by the API (FileStorage:MaxSizeBytes); allow a little overhead.
LimitRequestBody 12582912
# Order matters — the first matching ProxyPass wins, so /api/ must come before /.
# /health and /swagger are deliberately NOT proxied (they fall through to Next and 404).
ProxyPass /api/ http://127.0.0.1:5230/api/
ProxyPassReverse /api/ http://127.0.0.1:5230/api/
ProxyPass / http://127.0.0.1:3030/
ProxyPassReverse / http://127.0.0.1:3030/
ErrorLog /var/log/httpd/test-erp.hexdive.com-error.log
CustomLog /var/log/httpd/test-erp.hexdive.com-access.log combined
</VirtualHost>