Allow static assets at /static again

This commit is contained in:
Ben Visness 2021-09-06 10:14:18 -05:00
parent b53770932d
commit ff8fbcd632
2 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@
} }
<DOMAIN>, *.<DOMAIN> { <DOMAIN>, *.<DOMAIN> {
uri path_regexp ^/static/ /public/
handle /public/* { handle /public/* {
file_server { file_server {
root /home/hmn/hmn root /home/hmn/hmn

View File

@ -25,10 +25,10 @@ edit-config: ## Edit the website config
@echo '' @echo ''
logs: ## View logs for the website logs: ## View logs for the website
journalctl -u hmn.service -f journalctl -u hmn.service -n 100 -f
logs-caddy: ## View logs for Caddy logs-caddy: ## View logs for Caddy
journalctl -u caddy.service -f journalctl -u caddy.service -n 100 -f
download-database: ## Download a database backup download-database: ## Download a database backup
sudo -u hmn bash -c "cd ~ && ~/hmn/server/download_database.sh" sudo -u hmn bash -c "cd ~ && ~/hmn/server/download_database.sh"