diff options
author | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2019-05-31 23:09:06 +0000 |
---|---|---|
committer | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2019-05-31 23:09:06 +0000 |
commit | f1890d2cacfa09dd22b06a8d041c04dbeba9e138 (patch) | |
tree | 15a1ead751f72187edc367f30ce2978b56cb62cd /config | |
parent | f8d4c02431aa634dc74074b93d1cb522e47056ce (diff) | |
parent | 4e45f7bc878638b37225aadcdee547a11d280963 (diff) | |
download | pleroma-f1890d2cacfa09dd22b06a8d041c04dbeba9e138.tar.gz pleroma-f1890d2cacfa09dd22b06a8d041c04dbeba9e138.zip |
Merge branch 'dokku' into 'develop'
Dokku CI support - On-Demand review instances
See merge request pleroma/pleroma!1216
Diffstat (limited to 'config')
-rw-r--r-- | config/dokku.exs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/config/dokku.exs b/config/dokku.exs new file mode 100644 index 000000000..9ea0ec450 --- /dev/null +++ b/config/dokku.exs @@ -0,0 +1,25 @@ +use Mix.Config + +config :pleroma, Pleroma.Web.Endpoint, + http: [ + port: String.to_integer(System.get_env("PORT") || "4000"), + protocol_options: [max_request_line_length: 8192, max_header_value_length: 8192] + ], + protocol: "http", + secure_cookie_flag: false, + url: [host: System.get_env("APP_HOST"), scheme: "https", port: 443], + secret_key_base: "+S+ULgf7+N37c/lc9K66SMphnjQIRGklTu0BRr2vLm2ZzvK0Z6OH/PE77wlUNtvP" + +database_url = + System.get_env("DATABASE_URL") || + raise """ + environment variable DATABASE_URL is missing. + For example: ecto://USER:PASS@HOST/DATABASE + """ + +config :pleroma, Pleroma.Repo, + # ssl: true, + url: database_url, + pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10") + +config :pleroma, :instance, name: "#{System.get_env("APP_NAME")} CI Instance" |