Split in prod and test sites

This commit is contained in:
Lucas
2025-09-24 10:13:06 +00:00
parent 38bbe88d33
commit ad6c57857b
396 changed files with 40286 additions and 46 deletions

View File

@@ -1,4 +1,21 @@
:80 {
root * /srv
@prod host veloboomboom.internantes.ovh
handle @prod {
root * /srv/prod
file_server
}
@test host veloboomboom.lucasroyer.fr
handle @test {
basic_auth {
testuser $2a$14$hNv5hbag695p/jcyB.7qeOoCvqxQ0L6zyBptfHU15qnTtmivfXAea
}
root * /srv/test
file_server
}
# fallback
handle {
respond "Not Found" 404
}
}

View File

@@ -4,7 +4,8 @@ services:
container_name: site-veloboomboom
restart: always
volumes:
- /home/lucas/site-veloboomboom/html:/srv # Dossier contenant les fichiers statiques
- /home/lucas/site-veloboomboom/html-prod:/srv/prod # Dossier contenant les fichiers statiques
- /home/lucas/site-veloboomboom/html-test:/srv/test # Dossier contenant les fichiers statiques
- /home/lucas/site-veloboomboom/Caddyfile:/etc/caddy/Caddyfile # Fichier de configuration de Caddy
networks:
- reverse-proxy

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 56 KiB

View File

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 130 KiB

Some files were not shown because too many files have changed in this diff Show More