Skip to content

Commit

Permalink
Fix HTTPS setup in production
Browse files Browse the repository at this point in the history
  • Loading branch information
xendk committed Jan 2, 2025
1 parent 6136bf2 commit ff10916
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Binary file modified config/environments/.production.enc
Binary file not shown.
8 changes: 8 additions & 0 deletions config/initializers/multi_auth.cr
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,11 @@ class HTTP::Client
yield
end
end

class Amber::Server
# Monkeypatch Amber::Server to always make SSL links. We're running
# behind Traefik in production.
def scheme
ssl_enabled? ? "https" : "http"
end
end

0 comments on commit ff10916

Please sign in to comment.