diff options
author | Alan Pearce | 2024-06-28 16:54:42 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-28 16:54:42 +0200 |
commit | e29149ae9b0cd31f38beb38b0f4ea4e1599f4d93 (patch) | |
tree | 40f9f63157ad14d953a900f0971791c874c0a1ce /justfile | |
parent | 5dcf04d83605f5cfe1bf83c0a4c296bae47c3365 (diff) | |
download | website-e29149ae9b0cd31f38beb38b0f4ea4e1599f4d93.tar.lz website-e29149ae9b0cd31f38beb38b0f4ea4e1599f4d93.tar.zst website-e29149ae9b0cd31f38beb38b0f4ea4e1599f4d93.zip |
use socket passing also for TLS
Diffstat (limited to 'justfile')
-rwxr-xr-x | justfile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/justfile b/justfile index f799c1b..aab1b65 100755 --- a/justfile +++ b/justfile @@ -2,6 +2,9 @@ #!nix-shell -i "just --justfile" docker_registry := "registry.fly.io/alanpearce-eu" +listen_address := env_var_or_default("LISTEN_ADDRESS", "::1") +tls_port := env_var_or_default("TLS_PORT", "8443") +port := env_var_or_default("PORT", "8080") default: @just --list --justfile {{ justfile() }} --unsorted @@ -24,7 +27,7 @@ build: go run ./cmd/build dev: - modd + systemfd -s https::{{ listen_address }}:{{ tls_port }} -s http::{{ listen_address }}:{{ port }} -- modd ci: build check-links |