Add statics

This commit is contained in:
Andros Fenollosa
2021-06-23 15:10:44 +02:00
parent a901b8d54a
commit 9f6fcf447d
171 changed files with 35808 additions and 14 deletions

12
Caddyfile Normal file
View File

@@ -0,0 +1,12 @@
http://django.localhost:9000
encode gzip zstd
root * /home/andros/www/demo-hackernews-with-django-rest-framework
@notStatic {
not path /static/* /media/*
}
reverse_proxy @notStatic localhost:8000
file_server