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
|
rc-update add cts
|
||||||
service cts start
|
service cts start
|
||||||
|
|
||||||
# Create nginx app definition
|
# Add application definition
|
||||||
cp ${SOURCE_DIR}/etc/nginx/conf.d/cts.conf /etc/nginx/conf.d/cts.conf
|
spotter-appmgr add-app cts "https://cts.{host}/" "${CTS_ADMIN_EMAIL}" "${CTS_ADMIN_PWD}"
|
||||||
service nginx reload
|
|
||||||
|
|
||||||
# Add portal application definition
|
|
||||||
portal-app-manager cts "https://{host}:8406/" "${CTS_ADMIN_EMAIL}" "${CTS_ADMIN_PWD}"
|
|
||||||
|
@ -39,7 +39,7 @@ RUN \
|
|||||||
COPY docker/ /
|
COPY docker/ /
|
||||||
|
|
||||||
VOLUME ["/srv/cts/cts/settings"]
|
VOLUME ["/srv/cts/cts/settings"]
|
||||||
EXPOSE 8006
|
EXPOSE 8080
|
||||||
|
|
||||||
ENV DJANGO_SETTINGS_MODULE cts.settings.spotter
|
ENV DJANGO_SETTINGS_MODULE cts.settings.spotter
|
||||||
WORKDIR /srv/cts
|
WORKDIR /srv/cts
|
||||||
|
@ -18,7 +18,7 @@ http {
|
|||||||
send_timeout 300;
|
send_timeout 300;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 8006;
|
listen 8080;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
|
||||||
location /robots.txt {
|
location /robots.txt {
|
||||||
|
@ -12,11 +12,14 @@ start() {
|
|||||||
--name cts \
|
--name cts \
|
||||||
-h cts \
|
-h cts \
|
||||||
--link postgres \
|
--link postgres \
|
||||||
-p 127.0.0.1:8006:8006 \
|
|
||||||
-v /srv/cts/conf:/srv/cts/cts/settings \
|
-v /srv/cts/conf:/srv/cts/cts/settings \
|
||||||
cts
|
cts
|
||||||
}
|
}
|
||||||
|
|
||||||
|
start_post() {
|
||||||
|
/usr/local/bin/spotter-appmgr update-hosts cts
|
||||||
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
/usr/bin/docker stop cts
|
/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…
Reference in New Issue
Block a user