Unify KanBoard naming and nginx configuration for spotter-appmgr

This commit is contained in:
Disassembler 2018-03-25 23:12:13 +02:00
parent 41075c974e
commit 9d37aed199
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499
5 changed files with 9 additions and 24 deletions

View File

@ -28,13 +28,9 @@ cp ${SOURCE_DIR}/etc/init.d/kanboard /etc/init.d/kanboard
rc-update add kanboard
service kanboard start
# Create nginx app definition
cp ${SOURCE_DIR}/etc/nginx/conf.d/kanboard.conf /etc/nginx/conf.d/kanboard.conf
service nginx reload
# Install cron job
cp ${SOURCE_DIR}/etc/periodic/daily/kanboard /etc/periodic/daily/kanboard
# Add portal application definition
portal-app-manager kanboard "https://{host}:8409/" "${KANBOARD_ADMIN_USER}" "${KANBOARD_ADMIN_PWD}"
portal-app-manager kanboard-mobile -p clienturl "http://{host}:8809/"
# Add application definition
spotter-appmgr add-app kanboard "https://kanboard.{host}/" "${KANBOARD_ADMIN_USER}" "${KANBOARD_ADMIN_PWD}"
spotter-appmgr add-app kanboard-mobile -p clienturl "https://kanboard.{host}"

View File

@ -42,6 +42,6 @@ RUN \
COPY docker/ /
VOLUME ["/srv/kanboard/data/files"]
EXPOSE 8009
EXPOSE 8080
CMD ["s6-svscan", "/etc/services.d"]

View File

@ -17,7 +17,7 @@ http {
sendfile on;
server {
listen 8009;
listen 8080;
server_name localhost;
root /srv/kanboard;

View File

@ -13,12 +13,15 @@ start() {
-h kanboard \
--link postfix \
--link postgres \
-p 127.0.0.1:8009:8009 \
-v /srv/kanboard/data:/srv/kanboard/data/files \
-v /srv/kanboard/conf/config.php:/srv/kanboard/config.php \
kanboard
}
start_post() {
/usr/local/bin/spotter-appmgr update-hosts kanboard
}
stop() {
/usr/bin/docker stop kanboard
}

View File

@ -1,14 +0,0 @@
server {
listen [::]:8809 ipv6only=off;
listen [::]:8409 ssl http2 ipv6only=off;
access_log /var/log/nginx/kanboard.access.log;
error_log /var/log/nginx/kanboard.error.log;
location / {
proxy_set_header X-Forwarded-HTTPS $https;
proxy_set_header X-Forwarded-Server-Name $host;
proxy_set_header X-Forwarded-Server-Port $server_port;
proxy_pass http://127.0.0.1:8009;
}
}