Initial commit - existing project files

This commit is contained in:
W13R 2022-03-16 12:11:30 +01:00
commit c49798a9ea
82 changed files with 4304 additions and 0 deletions

39
config/Caddyfile Normal file
View file

@ -0,0 +1,39 @@
{
# disable admin backend
admin off
# define the ports by the environment variables
http_port {$HTTP_PORT}
https_port {$HTTPS_PORT}
}
https:// {
# the tls certificates
tls ./config/tls/server.pem ./config/tls/server-key.pem
route {
# static files
file_server /static/* {
root {$STATIC_FILES}/..
}
# favicon
redir /favicon.ico /static/favicon.ico
# reverse proxy to the (django) application
reverse_proxy localhost:{$DJANGO_PORT}
}
# use compression
encode gzip
# logging
log {
output file {$CADDY_ACCESS_LOG}
format filter {
wrap console
fields {
common_log delete
request>headers delete
request>tls delete
user_id delete
resp_headers delete
}
}
level INFO
}
}