Unify CTS naming and nginx configuration for spotter-appmgr
This commit is contained in:
parent
f1c5e18cd9
commit
527e4550d6
8
cts.sh
8
cts.sh
@ -41,9 +41,5 @@ cp ${SOURCE_DIR}/etc/init.d/cts /etc/init.d/cts
|
||||
rc-update add cts
|
||||
service cts start
|
||||
|
||||
# Create nginx app definition
|
||||
cp ${SOURCE_DIR}/etc/nginx/conf.d/cts.conf /etc/nginx/conf.d/cts.conf
|
||||
service nginx reload
|
||||
|
||||
# Add portal application definition
|
||||
portal-app-manager cts "https://{host}:8406/" "${CTS_ADMIN_EMAIL}" "${CTS_ADMIN_PWD}"
|
||||
# Add application definition
|
||||
spotter-appmgr add-app cts "https://cts.{host}/" "${CTS_ADMIN_EMAIL}" "${CTS_ADMIN_PWD}"
|
||||
|
@ -39,7 +39,7 @@ RUN \
|
||||
COPY docker/ /
|
||||
|
||||
VOLUME ["/srv/cts/cts/settings"]
|
||||
EXPOSE 8006
|
||||
EXPOSE 8080
|
||||
|
||||
ENV DJANGO_SETTINGS_MODULE cts.settings.spotter
|
||||
WORKDIR /srv/cts
|
||||
|
@ -18,7 +18,7 @@ http {
|
||||
send_timeout 300;
|
||||
|
||||
server {
|
||||
listen 8006;
|
||||
listen 8080;
|
||||
server_name localhost;
|
||||
|
||||
location /robots.txt {
|
||||
|
@ -12,11 +12,14 @@ start() {
|
||||
--name cts \
|
||||
-h cts \
|
||||
--link postgres \
|
||||
-p 127.0.0.1:8006:8006 \
|
||||
-v /srv/cts/conf:/srv/cts/cts/settings \
|
||||
cts
|
||||
}
|
||||
|
||||
start_post() {
|
||||
/usr/local/bin/spotter-appmgr update-hosts cts
|
||||
}
|
||||
|
||||
stop() {
|
||||
/usr/bin/docker stop cts
|
||||
}
|
||||
|
@ -1,11 +0,0 @@
|
||||
server {
|
||||
listen [::]:8806 ipv6only=off;
|
||||
listen [::]:8406 ssl http2 ipv6only=off;
|
||||
|
||||
access_log /var/log/nginx/cts.access.log;
|
||||
error_log /var/log/nginx/cts.error.log;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8006;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user