Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sample_app
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mai Hoang Thai Ha
sample_app
Commits
049011f5
Commit
049011f5
authored
Jun 24, 2021
by
Mai Hoang Thai Ha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Revert "add aws""
This reverts commit
de0559f3
.
parent
9cb94122
Pipeline
#1311
failed with stages
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
config/environments/production.rb
+1
-1
config/storage.yml
+8
-0
No files found.
config/environments/production.rb
View file @
049011f5
...
...
@@ -38,7 +38,7 @@ Rails.application.configure do
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
# Store uploaded files on the local file system (see config/storage.yml for options).
config
.
active_storage
.
service
=
:
local
config
.
active_storage
.
service
=
:
amazon
# Mount Action Cable outside main process or domain.
# config.action_cable.mount_path = nil
...
...
config/storage.yml
View file @
049011f5
...
...
@@ -6,6 +6,14 @@ local:
service
:
Disk
root
:
<%= Rails.root.join("storage") %>
amazon
:
service
:
S3
access_key_id
:
<%= ENV['AWS_ACCESS_KEY_ID'] %>
secret_access_key
:
<%= ENV['AWS_SECRET_ACCESS_KEY'] %>
region
:
<%= ENV['AWS_REGION'] %>
bucket
:
<%= ENV['AWS_BUCKET'] %>
# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
# amazon:
# service: S3
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment