From 6aa82a24d46c4f23794de79f359753ee9c6bee51 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Thu, 17 Oct 2024 17:34:23 +0200 Subject: [PATCH] goatcounter + lyon-transports listen on localhost only --- playbooks/apps/templates/goatcounter/goatcounter.service.j2 | 2 +- .../apps/templates/lyon-transports/lyon-transports.service.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/apps/templates/goatcounter/goatcounter.service.j2 b/playbooks/apps/templates/goatcounter/goatcounter.service.j2 index 70d40e5..9ac492b 100644 --- a/playbooks/apps/templates/goatcounter/goatcounter.service.j2 +++ b/playbooks/apps/templates/goatcounter/goatcounter.service.j2 @@ -3,7 +3,7 @@ Description=Goatcounter After=network.target [Service] -ExecStart={{ dir }}/goatcounter serve -listen *:8005 -tls http -smtp smtps://goatcounter%%40mg.augendre.info:{{gc_mailgun_api_key}}@smtp.mailgun.org:587 -email-from goatcounter@mg.augendre.info -automigrate -db sqlite+{{ dir }}/db/goatcounter.sqlite3 +ExecStart={{ dir }}/goatcounter serve -listen 127.0.0.1:8005 -tls http -smtp smtps://goatcounter%%40mg.augendre.info:{{gc_mailgun_api_key}}@smtp.mailgun.org:587 -email-from goatcounter@mg.augendre.info -automigrate -db sqlite+{{ dir }}/db/goatcounter.sqlite3 Type=simple Restart=always User=gaugendre diff --git a/playbooks/apps/templates/lyon-transports/lyon-transports.service.j2 b/playbooks/apps/templates/lyon-transports/lyon-transports.service.j2 index 0b27189..7928d89 100644 --- a/playbooks/apps/templates/lyon-transports/lyon-transports.service.j2 +++ b/playbooks/apps/templates/lyon-transports/lyon-transports.service.j2 @@ -3,7 +3,7 @@ Description=Lyon transports API After=network.target [Service] -ExecStart={{ dir }}/lyon-transports-linux-amd64 --host 0.0.0.0 --port 8013 -u {{ lyon_transports_username }} -p {{ lyon_transports_password }} --cors-allowed-origin https://display.augendre.info +ExecStart={{ dir }}/lyon-transports-linux-amd64 --host 127.0.0.1 --port 8013 -u {{ lyon_transports_username }} -p {{ lyon_transports_password }} --cors-allowed-origin https://display.augendre.info Type=simple Restart=always User=gaugendre