# ============================================================================== # ClassNotify Production Caddy Configuration Snippet # Hosts: classnotify.paradise.eu.org, audit.paradise.eu.org # Reverse Proxy to Kestrel (127.0.0.1:5000) & Immutable Audit Storage # ============================================================================== audit.paradise.eu.org { @latest path /manifest.json /latest-source.txt /latest.zip /AUDIT_FILE_TREE.txt /AUDIT_README.md /AUDIT_BUILD_RESULTS.md /P1_RC1_BUILD_MANIFEST.json handle @latest { root * /srv/classnotify-audit header Cache-Control "no-store, no-cache, must-revalidate, max-age=0" header Pragma "no-cache" header Expires "0" @latestText path /latest-source.txt /AUDIT_FILE_TREE.txt /AUDIT_README.md /AUDIT_BUILD_RESULTS.md header @latestText Content-Type "text/plain; charset=utf-8" file_server } handle_path /release-candidates/* { root * /srv/classnotify-audit/release-candidates header Cache-Control "public, max-age=31536000, immutable" file_server } handle_path /rc1/* { root * /srv/classnotify-audit/rc1 header Cache-Control "public, max-age=31536000, immutable" file_server } handle_path /snapshot/* { root * /srv/classnotify-audit/releases header Cache-Control "public, max-age=31536000, immutable" @snapshotText path *.txt *.md header @snapshotText Content-Type "text/plain; charset=utf-8" file_server } respond 404 } classnotify.paradise.eu.org { handle_path /audit-sec-9a7f8b2c4e/release-candidates/* { root * /srv/classnotify-audit/release-candidates header Cache-Control "public, max-age=31536000, immutable" file_server } handle_path /audit-sec-9a7f8b2c4e/snapshot/* { root * /srv/classnotify-audit/releases header Cache-Control "public, max-age=31536000, immutable" @snapshotText path *.txt *.md header @snapshotText Content-Type "text/plain; charset=utf-8" file_server } handle_path /audit-sec-9a7f8b2c4e/rc1/* { root * /srv/classnotify-audit/rc1 header Cache-Control "public, max-age=31536000, immutable" file_server } handle_path /audit-sec-9a7f8b2c4e/* { root * /srv/classnotify-audit @allowed path /latest.zip /latest-source.txt /manifest.json /AUDIT_FILE_TREE.txt /AUDIT_README.md /AUDIT_BUILD_RESULTS.md /P1_RC1_BUILD_MANIFEST.json @sourceText { path /latest-source.txt path /AUDIT_FILE_TREE.txt path /AUDIT_README.md path /AUDIT_BUILD_RESULTS.md } header @sourceText Content-Type "text/plain; charset=utf-8" handle @allowed { header Cache-Control "no-store, no-cache, must-revalidate, max-age=0" header Pragma "no-cache" header Expires "0" file_server } respond 404 } reverse_proxy 127.0.0.1:5000 }