Repository Public
1# =============================================================================2# SP BOUCHER | INFRASTRUCTURE & AUTOMATION3# ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING4# =============================================================================5#6# Project : cluster-skill7# File : maclustr-tunnel/Caddyfile8# Module : maclustr-tunnel9# Repository : https://git.spboucher.ai/cluster-skill10# Created : 2026-10-0211# Last Modified : 2026-10-0212#13# Author : Simon-Pierre Boucher14# Position : Professor of Finance15# Institution : Université du Québec en Outaouais (UQO)16# Organization : SP Boucher17# Website : https://spboucher.ai18# Git : https://git.spboucher.ai19#20# Preferred Contact: admin@spboucher.ai21# Technical Contact: dev@spboucher.ai22# Security/Admin : admin@spboucher.ai23#24# Copyright (c) 202625# Simon-Pierre Boucher26# All rights reserved where applicable. This file is governed by the27# applicable project license, copyright notices and relevant law.28# Existing third-party rights and notices remain unaffected.29#30# License : None specified (no license file in this repository)31#32# Do not embed credentials, private keys, access tokens,33# certificates or confidential personal information.34#35# =============================================================================36# END OF SP BOUCHER SOURCE HEADER37# =============================================================================3839{40 email contact@spboucher.ai41 admin localhost:201942 servers {43 trusted_proxies static private_ranges44 }45}4647# Pages d'erreur MacLustr (app injoignable derrière le tunnel) — importé par chaque route de tunnelctl.48(maclustr_errors) {49 handle_errors 502 503 504 {50 root * /etc/caddy/errors51 rewrite * /down.html52 templates53 file_server {54 status {err.status_code}55 }56 header Cache-Control "no-store"57 header Retry-After "20"58 }59}6061# Hôtes inconnus : page 404 MacLustr (évite de servir une route au hasard).62:80, :443 {63 root * /etc/caddy/errors64 rewrite * /unknown.html65 templates66 file_server {67 status 40468 }69 header Cache-Control "no-store"70}7172import sites/*.caddy73