Added SECRET_KEY_BASE parameter

This commit is contained in:
Pavel Pivovarov
2019-07-09 13:42:22 +10:00
parent fcf3968f60
commit 1231ca7eb7
3 changed files with 7 additions and 1 deletions

View File

@@ -19,6 +19,8 @@ ENV RAILS_ENV production
ENV RACK_ENV production
ENV NODE_ENV production
ENV SECRET_KEY_BASE="08898973823f6f1d121ce30fb8adc1c559dcfc08f358cfc0298e4aad81b8c9d798e8249e3a4b26c04255cf8b2d71eaf8eda865d173ae3fe6fb1a599d1b1fa260"
RUN git clone https://github.com/snibox/snibox.git /app && cd /app && git reset --hard $GIT_HASH
COPY . /app

View File

@@ -34,3 +34,7 @@ docker run -d --name snibox \
`DATABASE` - Defines sqlite3 database file location within container.
_Default_: `/app/db/database/snibox.sqlite3`
---
`SECRET_KEY_BASE` - Defines `secret_key_base` parameter for your Rails application. Default one is included into the image already, but general recommendation is to change it.

View File

@@ -2,4 +2,4 @@ production:
adapter: sqlite3
pool: 5
timeout: 5000
database: <%= ENV['DATABASE'] || "db/database/snibox.sqlite3" %>
database: <%= ENV['DATABASE'] || "db/database/snibox.sqlite3" %>