Use different conf for docker and packages

This commit is contained in:
Micke Nordin 2021-02-24 14:37:25 +01:00
parent d71b7b06e2
commit 9318504d19
2 changed files with 16 additions and 1 deletions

View file

@ -20,7 +20,7 @@ WORKDIR /app
COPY ./gmnd/__init__.py .
COPY ./content content
COPY ./cgi-bin cgi-bin
COPY config.yml .
COPY dockerconf.yml ./config.yml
COPY --from=build-stage /app/certs certs
EXPOSE 1965
CMD ["python", "__init__.py", "--file", "./config.yml" ]

15
dockerconf.yml Normal file
View file

@ -0,0 +1,15 @@
---
# Uncomment below line to allow automtic directory indexing
allow_dir_list: true
# Below is default bas path for your content
base_path: ./content
# To allow connectiond from the outside, set listen address below
listen_addr: '0.0.0.0'
# To set debug logging, uncomment below line
logg_level: 'DEBUG'
# To enable cgi functionality, configure something like below
cgi_registry:
/envtest.*:
- ./cgi-bin/envtest.sh
server_cert: ./certs/cert.pem
server_key: ./certs/cert.key