Skip to content

Commit 5e9cbdb

Browse files
committed
Combine prod/staging Caddyfile
1 parent 957e350 commit 5e9cbdb

File tree

5 files changed

+9
-36
lines changed

5 files changed

+9
-36
lines changed

Caddyfile.prod renamed to Caddyfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
www.pspython.com {
2-
tls {$TLS_EMAIL}
1+
{$CADDY_HOST} {
2+
tls {$CADDY_TLS_EMAIL}
33
gzip
44
root /var/www/nerd_herder
55

Caddyfile.staging

-30
This file was deleted.

caddy.staging.env

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CADDY_HOST=:8080
2+
CADDY_TLS_EMAIL=self_signed
3+
ACME_AGREE=true

docker-compose.staging.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ services:
5252
replicas: 1
5353
restart_policy:
5454
condition: on-failure
55-
environment:
56-
- ACME_AGREE=true
55+
env_file:
56+
- caddy.staging.env
5757
depends_on:
5858
- nerd_herder
5959
links:
6060
- nerd_herder
6161
volumes:
6262
- './.docker-data/caddy:/root/.caddy'
63-
- './Caddyfile.staging:/etc/Caddyfile'
63+
- './Caddyfile:/etc/Caddyfile'
6464
ports:
6565
- '8080:8080'

docker/reverse_proxy/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ FROM abiosoft/caddy:0.11.0-no-stats
66

77
COPY --from=frontend /usr/src/nerd_herder/frontend/build /var/www/nerd_herder/
88
COPY --from=backend /usr/src/nerd_herder/static /var/www/nerd_herder/static
9-
COPY ./Caddyfile.prod /etc/Caddyfile
9+
COPY ./Caddyfile /etc/Caddyfile

0 commit comments

Comments
 (0)