Skip to content

Commit 78aea5e

Browse files
committed
chore: refactoring configuration
1 parent 0df465c commit 78aea5e

3 files changed

Lines changed: 25 additions & 0 deletions

File tree

configuration/base.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
application:
2+
port: 8000
3+
host: 127.0.0.1
4+
base_url: "http://127.0.0.1"
5+
database:
6+
host: "localhost"
7+
port: 5432
8+
username: "postgres"
9+
password: "password"
10+
database_name: "newsletter"
11+
email_client:
12+
base_url: "localhost"
13+
sender_email: "admin@example.com"
14+
authorization_token: "my-secret-token"

configuration/local.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
application:
2+
host: 127.0.0.1
3+
database:
4+
require_ssl: false

configuration/production.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
application:
2+
host: 0.0.0.0
3+
database:
4+
require_ssl: true
5+
email_client:
6+
base_url: "https://api.postmarkapp.com"
7+
sender_email: "something@gmail.com"

0 commit comments

Comments
 (0)