diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 10855a1..fe4d617 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -3,9 +3,8 @@ name: "Test" # yamllint disable-line rule:truthy on: - {} - # pull_request: - # push: + pull_request: + push: jobs: tests: @@ -19,6 +18,6 @@ jobs: # extraPullNames: devenv # authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - name: Install devenv.sh - run: nix profile install github:cachix/devenv/latest + run: nix-env -if https://github.com/cachix/devenv/tarball/main - run: devenv shell echo ok - run: devenv ci diff --git a/app/controllers/home.go b/app/controllers/home.go index 8373805..5b7128c 100644 --- a/app/controllers/home.go +++ b/app/controllers/home.go @@ -31,7 +31,7 @@ func (c *HomeController) Router(r chi.Router) { func (c *HomeController) Index(w http.ResponseWriter, r *http.Request) { hx := htmx.New(w, r) - isSecure := r.URL.Scheme == "https" + isSecure := r.URL.Scheme == "https" || r.Header.Get("X-Forwarded-Proto") == "https" if hx.IsHtmxRequest() { hx.PushUrl("/")