Unify GNU Health naming and nginx configuration for spotter-appmgr
This commit is contained in:
parent
527e4550d6
commit
672777dd5e
10
gnuhealth.sh
10
gnuhealth.sh
@ -33,10 +33,6 @@ cp ${SOURCE_DIR}/etc/init.d/gnuhealth /etc/init.d/gnuhealth
|
|||||||
rc-update add gnuhealth
|
rc-update add gnuhealth
|
||||||
service gnuhealth start
|
service gnuhealth start
|
||||||
|
|
||||||
# Create nginx app definition
|
# Add application definition
|
||||||
cp ${SOURCE_DIR}/etc/nginx/conf.d/gnuhealth.conf /etc/nginx/conf.d/gnuhealth.conf
|
spotter-appmgr add-app gnuhealth "https://gnuhealth.{host}/index.html" admin "${GNUHEALTH_ADMIN_PWD}"
|
||||||
service nginx reload
|
spotter-appmgr add-app gnuhealth-clients -p clienturl "gnuhealth.{host}"
|
||||||
|
|
||||||
# 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"
|
|
||||||
|
@ -52,7 +52,7 @@ RUN \
|
|||||||
&& rm -rf /usr/local/share/.cache
|
&& rm -rf /usr/local/share/.cache
|
||||||
|
|
||||||
VOLUME ["/srv/gnuhealth/gnuhealth/tryton/server/config"]
|
VOLUME ["/srv/gnuhealth/gnuhealth/tryton/server/config"]
|
||||||
EXPOSE 8008
|
EXPOSE 8080
|
||||||
|
|
||||||
USER gnuhealth
|
USER gnuhealth
|
||||||
ENV PATH=/srv/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/bin:${PATH} \
|
ENV PATH=/srv/gnuhealth/gnuhealth/tryton/server/trytond-4.2.10/bin:${PATH} \
|
||||||
|
@ -13,11 +13,14 @@ start() {
|
|||||||
-h gnuhealth \
|
-h gnuhealth \
|
||||||
--link postfix \
|
--link postfix \
|
||||||
--link postgres \
|
--link postgres \
|
||||||
-p 127.0.0.1:8008:8008 \
|
|
||||||
-v /srv/gnuhealth/conf:/srv/gnuhealth/gnuhealth/tryton/server/config \
|
-v /srv/gnuhealth/conf:/srv/gnuhealth/gnuhealth/tryton/server/config \
|
||||||
gnuhealth
|
gnuhealth
|
||||||
}
|
}
|
||||||
|
|
||||||
|
start_post() {
|
||||||
|
/usr/local/bin/spotter-appmgr update-hosts gnuhealth
|
||||||
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
/usr/bin/docker stop gnuhealth
|
/usr/bin/docker stop gnuhealth
|
||||||
}
|
}
|
||||||
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
@ -3,7 +3,7 @@ uri = postgresql://gnuhealth:${GNUHEALTH_PWD}@postgres
|
|||||||
path = /srv/gnuhealth/attach
|
path = /srv/gnuhealth/attach
|
||||||
|
|
||||||
[web]
|
[web]
|
||||||
listen = 0.0.0.0:8008
|
listen = 0.0.0.0:8080
|
||||||
root = /srv/gnuhealth/sao
|
root = /srv/gnuhealth/sao
|
||||||
|
|
||||||
[webdav]
|
[webdav]
|
||||||
|
Loading…
Reference in New Issue
Block a user