Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
add force ssl to env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusGautamah committed Jan 31, 2023
1 parent a81a477 commit d0ddcda
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .env_sample
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ FIRESTORE_PROJECT_ID=YOUR_FIRESTORE_PROJECT_ID
FIRESTORE_KEY_FILE=YOUR_FIRESTORE_KEY_FILE
FIRESTORE_KEY_FILE_PATH=YOUR_FIRESTORE_KEY_FILE_PATH
POSTGRES_USER=YOUR_POSTGRES_USER
POSTGRES_PASSWORD=YOUR_POSTGRES_PASSWORD
POSTGRES_PASSWORD=YOUR_POSTGRES_PASSWORD
FORCE_SSL=true
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ https://blockchain-staging.outerspacecoding.com
* [ ] Better layout for the blockchain web interface
* [ ] Add and correct documentation, create api documentation page
## Todo
* [ ] Better Rack Cors Config
* [ ] Add Rack Attack and Rack Attack Throttle
* [ ] Simplify SMTP configuration
* [ ] Create a template for the user registration email
* [ ] Create blockchain report mailer to admin
Expand Down
3 changes: 3 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
# Code is not reloaded between requests.
config.cache_classes = true

# force ssl
config.force_ssl = ENV["FORCE_SSL"] == "true"

# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both threaded web servers
# and those relying on copy on write to perform better.
Expand Down

0 comments on commit d0ddcda

Please sign in to comment.