Skip to content

Commit

Permalink
Merge pull request #26 from coldfix/expiration-days
Browse files Browse the repository at this point in the history
Add DDNS_EXPIRATION_DAYS env variable
  • Loading branch information
pboehm authored Oct 2, 2020
2 parents 3e9c5ef + 3e71d95 commit fdc1312
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docker/ddns/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ RUN GO111MODULE=on go get -d -v ./...
RUN GO111MODULE=on go install -v ./...

ENV GIN_MODE release
ENV DDNS_EXPIRATION_DAYS 10

CMD /go/bin/ddns --domain=${DDNS_DOMAIN} --soa_fqdn=${DDNS_SOA_DOMAIN} --redis=${DDNS_REDIS_HOST}
CMD /go/bin/ddns \
--domain=${DDNS_DOMAIN} \
--soa_fqdn=${DDNS_SOA_DOMAIN} \
--redis=${DDNS_REDIS_HOST} \
--expiration-days=${DDNS_EXPIRATION_DAYS}
1 change: 1 addition & 0 deletions docker/docker-compose.override.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ services:
environment:
DDNS_DOMAIN: d.example.net # <<< ADJUST DOMAIN
DDNS_SOA_DOMAIN: ddns.example.net # <<< ADJUST DOMAIN
DDNS_EXPIRATION_DAYS: 10

powerdns:
ports:
Expand Down

0 comments on commit fdc1312

Please sign in to comment.