Unify GNU Health naming and nginx configuration for spotter-appmgr

This commit is contained in:
Disassembler 2018-03-25 23:10:39 +02:00
parent 527e4550d6
commit 672777dd5e
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
5 changed files with 9 additions and 21 deletions

View File

@ -33,10 +33,6 @@ cp ${SOURCE_DIR}/etc/init.d/gnuhealth /etc/init.d/gnuhealth
rc-update add gnuhealth
service gnuhealth start
# Create nginx app definition
cp ${SOURCE_DIR}/etc/nginx/conf.d/gnuhealth.conf /etc/nginx/conf.d/gnuhealth.conf
service nginx reload
# Add portal application definition
portal-app-manager gnuhealth "https://{host}:8408/index.html" admin "${GNUHEALTH_ADMIN_PWD}"
portal-app-manager gnuhealth-clients -p clienturl "{host}:8808"
# Add application definition
spotter-appmgr add-app gnuhealth "https://gnuhealth.{host}/index.html" admin "${GNUHEALTH_ADMIN_PWD}"
spotter-appmgr add-app gnuhealth-clients -p clienturl "gnuhealth.{host}"

View File

@ -52,7 +52,7 @@ RUN \
&& rm -rf /usr/local/share/.cache
VOLUME ["/srv/gnuhealth/gnuhealth/tryton/server/config"]
EXPOSE 8008
EXPOSE 8080
USER gnuhealth
ENV PATH=/srv/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/bin:${PATH} \

View File

@ -13,11 +13,14 @@ start() {
-h gnuhealth \
--link postfix \
--link postgres \
-p 127.0.0.1:8008:8008 \
-v /srv/gnuhealth/conf:/srv/gnuhealth/gnuhealth/tryton/server/config \
gnuhealth
}
start_post() {
/usr/local/bin/spotter-appmgr update-hosts gnuhealth
}
stop() {
/usr/bin/docker stop gnuhealth
}

View File

@ -1,11 +0,0 @@
server {
listen [::]:8808 ipv6only=off;
listen [::]:8408 ssl http2 ipv6only=off;
access_log /var/log/nginx/gnuhealth.access.log;
error_log /var/log/nginx/gnuhealth.error.log;
location / {
proxy_pass http://127.0.0.1:8008;
}
}

View File

@ -3,7 +3,7 @@ uri = postgresql://gnuhealth:${GNUHEALTH_PWD}@postgres
path = /srv/gnuhealth/attach
[web]
listen = 0.0.0.0:8008
listen = 0.0.0.0:8080
root = /srv/gnuhealth/sao
[webdav]