-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* caddy image + Caddyfile updates * Changed caddy image tag to 2.7.6 instead of latest (latest as of 26 avr 2024) * Removed unnecessary comment * Changed caddy data folder to more relevent name + removed unecessary spaces hopefully * caddy image + Caddyfile updates * Better caddy console format + re-removed unecessary spaces in docker-compose.yml * Commented the tls directive * Uncomment TLS_EMAIL so it is more robust --------- Co-authored-by: Obada Haddad <obada.haddad@lisn.fr> Co-authored-by: didayolo <adrien.pavao@gmail.com>
- Loading branch information
1 parent
b142529
commit 94028a4
Showing
3 changed files
with
24 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,35 @@ | ||
{$DOMAIN_NAME} { | ||
# HTTPS options: | ||
# HTTPS Options | ||
tls {$TLS_EMAIL} | ||
|
||
|
||
# Test HTTPS setup | ||
# tls {$TLS_EMAIL} { | ||
# ca https://acme-staging-v02.api.letsencrypt.org/directory | ||
# } | ||
|
||
|
||
# Removing some headers for improved security: | ||
header / -Server | ||
header -Server | ||
|
||
# Serves static files, should be the same as `STATIC_ROOT` setting: | ||
root /var/www/django | ||
|
||
# Serving dynamic requests: | ||
proxy / django:8000 { | ||
except /static /media | ||
transparent | ||
websocket | ||
root * /var/www/django | ||
file_server | ||
|
||
@noStatic { | ||
not path /static/* | ||
not path /media/* | ||
} | ||
|
||
# Serving dynamic requests: | ||
reverse_proxy @noStatic django:8000 | ||
|
||
# Allows to use `.gz` files when available: | ||
gzip | ||
encode gzip | ||
|
||
# Logs: | ||
log stdout | ||
errors stdout | ||
log { | ||
output stdout | ||
format console | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters