Split in prod and test sites
This commit is contained in:
19
Caddyfile
19
Caddyfile
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 56 KiB |
|
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
Reference in New Issue
Block a user