Skip to content

Commit

Permalink
add logging on caddyfile and systemd service
Browse files Browse the repository at this point in the history
  • Loading branch information
sirodoht committed Sep 11, 2024
1 parent 8d1c034 commit 06795b8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions ansible/Caddyfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
tls /etc/caddy/mataroa-blog-cert.pem /etc/caddy/mataroa-blog-key.pem

encode zstd gzip

log {
output stdout
format console
}
}

:443 {
Expand All @@ -30,4 +35,9 @@
}

encode zstd gzip

log {
output stdout
format console
}
}
2 changes: 1 addition & 1 deletion ansible/mataroa.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Type=simple
User=deploy
Group=www-data
WorkingDirectory=/var/www/mataroa
ExecStart=/var/www/mataroa/.venv/bin/gunicorn -b 127.0.0.1:5000 -w 4 mataroa.wsgi
ExecStart=/var/www/mataroa/.venv/bin/gunicorn -b 127.0.0.1:5000 -w 4 --access-logfile - mataroa.wsgi
ExecReload=/bin/kill -HUP $MAINPID
Environment="DOMAIN={{ domain }}"
Environment="EMAIL={{ email }}"
Expand Down

0 comments on commit 06795b8

Please sign in to comment.