Unify Pandora naming and nginx configuration for spotter-appmgr
This commit is contained in:
parent
2c33b9a9c6
commit
71ab395bff
@ -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}"
|
|
||||||
|
@ -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"]
|
||||||
|
@ -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 {
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user