Skip to content

Commit

Permalink
Try fix ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
hschne committed Oct 15, 2024
1 parent 5782e5a commit 492c0ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ USER rails:rails
# Entrypoint prepares the database.
ENTRYPOINT ["/rails/bin/docker-entrypoint"]

ENV TLS_DOMAIN=datadeaddrop.com

# Start the server by default, this can be overwritten at runtime
EXPOSE 80
CMD ["./bin/thrust", "./bin/rails", "server"]
1 change: 0 additions & 1 deletion config/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ builder:
env:
clear:
HOSTNAME: datadeaddrop.com
TLS_DOMAIN: datadeaddrop.com
RAILS_SERVE_STATIC_FILES: true
RAILS_LOG_TO_STDOUT: true
WEB_CONCURRENCY: 1
Expand Down
4 changes: 3 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@

# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = true
config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } }

# Log to STDOUT by default
config.logger = ActiveSupport::Logger.new($stdout)
Expand Down Expand Up @@ -95,6 +96,7 @@
# /.*\.example\.com/ # Allow requests from subdomains like `www.example.com`
# ]
# Skip DNS rebinding protection for the default health check endpoint.
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
config.host_authorization = { exclude: ->(request) { request.path == "/up" } }

config.active_record.sqlite3_production_warning = false
end

0 comments on commit 492c0ac

Please sign in to comment.