Skip to content

Commit 05d1cd6

Browse files
authored
feat(config): better config (#314)
* update * update * update port * update port * state * update * cut down deps * format
1 parent 871332e commit 05d1cd6

File tree

24 files changed

+179
-756
lines changed

24 files changed

+179
-756
lines changed

.cargo/config.toml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
11
[env]
2-
POSTGRES_USER = "postgres"
3-
POSTGRES_PASSWORD = "postgres"
4-
POSTGRES_HOST = "localhost"
5-
POSTGRES_DB = "ptolemy"
6-
POSTGRES_PORT = "5432"
7-
8-
PTOLEMY_ENV = "DEV"
9-
JWT_SECRET = "pC15dRLduel2TYONYEfyjHZ289j7dIXv1RXL09T/t0o="
102
RUST_LOG = "info,api=debug,ptolemy=debug"
11-
12-
API_PORT = "8000"
13-
PTOLEMY_USER = "admin"
14-
PTOLEMY_PASS = "admin"
15-
16-
ENABLE_AUDITING="true"
17-
183
BUILD_PROTOBUFS="1"

.env.example

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +0,0 @@
1-
# Postgres settings
2-
POSTGRES_USER=postgres
3-
POSTGRES_PASSWORD=postgres
4-
POSTGRES_DB=ptolemy
5-
POSTGRES_HOST=postgres
6-
POSTGRES_PORT=5432
7-
8-
# Sysadmin Credentials
9-
PTOLEMY_USER=admin
10-
PTOLEMY_PASS=admin
11-
12-
# Can be DEV, STAGE, or PROD (default is PROD)
13-
PTOLEMY_ENV=DEV
14-
15-
# JWT Secret
16-
JWT_SECRET=your-base64-encoded-secret-here
17-
18-
# Optional configurations
19-
API_PORT=8000

0 commit comments

Comments
 (0)