Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
plausible-analytics
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
varac-projects
plausible-analytics
Commits
46ca6680
Commit
46ca6680
authored
Oct 9, 2021
by
Uku Taht
Browse files
Options
Downloads
Patches
Plain Diff
Configure database SSL
parent
d8144436
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/runtime.exs
+6
-1
6 additions, 1 deletion
config/runtime.exs
with
6 additions
and
1 deletion
config/runtime.exs
+
6
−
1
View file @
46ca6680
...
...
@@ -42,6 +42,9 @@ db_url =
"postgres://postgres:postgres@plausible_db:5432/plausible_db"
)
db_ssl_enabled
=
get_var_from_path_or_env
(
config_dir
,
"DATABASE_SSL"
,
"false"
)
|>
String
.
to_existing_atom
()
db_socket_dir
=
get_var_from_path_or_env
(
config_dir
,
"DATABASE_SOCKET_DIR"
)
admin_user
=
get_var_from_path_or_env
(
config_dir
,
"ADMIN_USER_NAME"
)
...
...
@@ -192,7 +195,9 @@ config :plausible, PlausibleWeb.Endpoint,
secret_key_base:
secret_key_base
if
is_nil
(
db_socket_dir
)
do
config
:plausible
,
Plausible
.
Repo
,
url:
db_url
config
:plausible
,
Plausible
.
Repo
,
url:
db_url
,
ssl:
db_ssl_enabled
else
config
:plausible
,
Plausible
.
Repo
,
socket_dir:
db_socket_dir
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment