Skip to content

Commit d24952a

Browse files
committed
[docker] CA cert and key in compose
1 parent 5859017 commit d24952a

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.env.example

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
HTTP__ADDRESS=:3000 # HTTP server listen address
2-
HTTP__PROXY_HEADER=X-Forwarded-For # HTTP proxy header
3-
HTTP__PROXIES=127.0.0.1 # HTTP trusted proxies
1+
HTTP__ADDRESS=:3000 # HTTP server listen address
2+
HTTP__PROXY_HEADER=X-Forwarded-For # HTTP proxy header
3+
HTTP__PROXIES=127.0.0.1 # HTTP trusted proxies
44

5-
STORAGE__URL=redis://localhost:6379/0 # Redis URL
5+
API__CORS_ALLOW_ORIGINS=http://localhost:3001 # CORS allow origins
66

7+
STORAGE__URL=redis://localhost:6379/0 # Redis URL
8+
9+
CSR__TTL=24h # CSR lifetime
710
CSR__CA_CERT_PATH=./ca/ca.crt # CA certificate
811
CSR__CA_KEY_PATH=./ca/ca.key # CA private key

compose.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
server:
3-
image: "ghcr.io/android-sms-gateway/ca:latest"
3+
image: "ghcr.io/android-sms-gateway/ca-backend:latest"
44
build:
55
context: .
66
target: final
@@ -9,6 +9,10 @@ services:
99
- HTTP__PROXY_HEADER=X-Forwarded-For
1010
- HTTP__PROXIES=127.0.0.1
1111
- STORAGE__URL=redis://redis:6379/0
12+
- CSR__CA_CERT_PATH=/etc/ca/ca.crt
13+
- CSR__CA_KEY_PATH=/etc/ca/ca.key
14+
volumes:
15+
- ./ca:/etc/ca:ro
1216
ports:
1317
- 3000:3000
1418
depends_on:

0 commit comments

Comments
 (0)