Unify Pandora naming and nginx configuration for spotter-appmgr

This commit is contained in:
Disassembler 2018-03-25 23:18:24 +02:00
parent 2c33b9a9c6
commit 71ab395bff
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499
5 changed files with 8 additions and 20 deletions

View File

@ -56,9 +56,5 @@ cp ${SOURCE_DIR}/etc/init.d/pandora /etc/init.d/pandora
rc-update add pandora rc-update add pandora
service pandora start service pandora start
# Create nginx app definition # Add application definition
cp ${SOURCE_DIR}/etc/nginx/conf.d/pandora.conf /etc/nginx/conf.d/pandora.conf spotter-appmgr add-app pandora "https://pandora.{host}/" "${PANDORA_ADMIN_USER}" "${PANDORA_ADMIN_PWD}"
service nginx reload
# Add portal application definition
portal-app-manager pandora "https://{host}:8402/" "${PANDORA_ADMIN_USER}" "${PANDORA_ADMIN_PWD}"

View File

@ -89,7 +89,7 @@ RUN \
COPY docker/etc/ /etc/ COPY docker/etc/ /etc/
VOLUME ["/srv/pandora/conf", "/srv/pandora/data"] VOLUME ["/srv/pandora/conf", "/srv/pandora/data"]
EXPOSE 8002 EXPOSE 8080
WORKDIR /srv/pandora WORKDIR /srv/pandora
CMD ["s6-svscan", "/etc/services.d"] CMD ["s6-svscan", "/etc/services.d"]

View File

@ -18,7 +18,7 @@ http {
send_timeout 300; send_timeout 300;
server { server {
listen 8002; listen 8080;
server_name localhost; server_name localhost;
location /favicon.ico { location /favicon.ico {

View File

@ -14,12 +14,15 @@ start() {
--link postfix \ --link postfix \
--link postgres \ --link postgres \
--link rabbitmq \ --link rabbitmq \
-p 127.0.0.1:8002:8002 \
-v /srv/pandora/conf:/srv/pandora/conf \ -v /srv/pandora/conf:/srv/pandora/conf \
-v /srv/pandora/data:/srv/pandora/data \ -v /srv/pandora/data:/srv/pandora/data \
pandora pandora
} }
start_post() {
/usr/local/bin/spotter-appmgr update-hosts pandora
}
stop() { stop() {
/usr/bin/docker stop pandora /usr/bin/docker stop pandora
} }

View File

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