Skip to content

Commit

Permalink
fix: remove force_ssl to restore a working Render deployment (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
zorn authored Sep 8, 2024
1 parent c9b1abd commit 7e6df6d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ jobs:
if: always()

- name: Check for security vulnerabilities in Phoenix project
run: mix sobelow
run: mix sobelow --config
if: always()
1 change: 1 addition & 0 deletions .sobelow-conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[verbose: true, private: false, skip: false, router: nil, exit: false, format: "txt", out: nil, threshold: :low, ignore: ["Config.HTTPS"], ignore_files: [], version: false]
10 changes: 6 additions & 4 deletions config/prod.exs
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import Config

config :flick, FlickWeb.Endpoint,
# https://hexdocs.pm/phoenix/using_ssl.html#hsts
# FIXME: Restore this in the future.
# https://github.com/zorn/flick/issues/85
# force_ssl: [hsts: true]

# Note we also include the path to a cache manifest
# containing the digested version of static files. This
# manifest is generated by the `mix assets.deploy` task,
# which you should run after static files are built and
# before starting your production server.
cache_static_manifest: "priv/static/cache_manifest.json",

# https://hexdocs.pm/phoenix/using_ssl.html#hsts
force_ssl: [hsts: true]
cache_static_manifest: "priv/static/cache_manifest.json"

# Configures Swoosh API Client
config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: Flick.Finch
Expand Down

0 comments on commit 7e6df6d

Please sign in to comment.