Allow static assets at /static again
This commit is contained in:
parent
b53770932d
commit
ff8fbcd632
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue