Skip to content

Commit

Permalink
Merge pull request #265 from gyselroth/v3.2.x
Browse files Browse the repository at this point in the history
v3.2.8
  • Loading branch information
raffis authored Oct 16, 2019
2 parents d677c03 + cfb11ea commit 5af4462
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 83 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 3.2.8
**Maintainer**: balloon-team <[email protected]>\
**Date**: Wed Oct 02 14:33:22 CEST 2019

* [FIX] Cannot start container balloon_balloon-web_1 #262
* [FIX] Updated dependencies (npm audit)


## 3.2.7
**Maintainer**: balloon-team <[email protected]>\
**Date**: Wed Sep 11 16:31:23 CEST 2019
Expand Down
23 changes: 1 addition & 22 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,2 @@
FROM nginx:1-alpine

RUN apk add --update openssl \
&& rm -rf /var/cache/apk/*

RUN mkdir /usr/share/balloon-web/nginx -p
COPY build/ /usr/share/balloon-web/
COPY packaging/nginx.conf /etc/nginx/conf.d/balloon.conf

RUN sed -i "s#unix:/run/php/php7.2-fpm.sock#balloon:9000#g" /etc/nginx/conf.d/balloon.conf \
&& sed -i "s#/var/log/balloon/nginx_access.log#/dev/stdout#g" /etc/nginx/conf.d/balloon.conf \
&& sed -i "s#/var/log/balloon/nginx_error.log#/dev/stderr#g" /etc/nginx/conf.d/balloon.conf

RUN openssl genrsa -des3 -passout pass:balloon -out server.pass.key 2048 \
&& openssl rsa -passin pass:balloon -in server.pass.key -out key.pem \
&& rm server.pass.key \
&& openssl req -new -key key.pem -out server.csr -subj "/C=CH/L=Zurich/O=Balloon/CN=balloon.local" \
&& openssl x509 -req -days 365 -in server.csr -signkey key.pem -out chain.pem \
&& rm server.csr \
&& mv key.pem /etc/ssl/balloon \
&& mv chain.pem /etc/ssl/balloon

EXPOSE 80 443
COPY build/ /usr/share/nginx/html
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ $(DIST_DIR)/balloon-web-$(VERSION).deb: $(CHANGELOG_TARGET) $(BUILD_TARGET)
@mkdir -p $(PACK_DIR)/usr/share/balloon-web
@cp -Rp $(BUILD_DIR)/* $(PACK_DIR)/usr/share/balloon-web
@mkdir $(PACK_DIR)/usr/share/balloon-web/nginx
@cp -Rp $(BASE_DIR)/packaging/nginx.conf $(PACK_DIR)/usr/share/balloon-web/nginx
@cp -Rp $(BASE_DIR)/packaging/debian/nginx.conf $(PACK_DIR)/usr/share/balloon-web/nginx
@cp -Rp $(BASE_DIR)/packaging/debian/nginx-web.conf $(PACK_DIR)/usr/share/balloon-web/nginx
@-test -d $(DIST_DIR) || mkdir $(DIST_DIR)
@dpkg-deb --build $(PACK_DIR) $@
@rm -rf $(PACK_DIR)
Expand Down Expand Up @@ -184,5 +185,6 @@ install: $(INSTALL_TARGET)

$(INSTALL_TARGET): $(BUILD_TARGET)
@cp -Rp $(BUILD_DIR)/* $(INSTALL_PREFIX)/usr/share/balloon-web
@mkdir -p /etc/nginx/conf.d
@cp -Rp $(BASE_DIR)/packaging/nginx.conf /etc/nginx/conf.d
@mkdir -p /etc/nginx/conf.d/balloon
@cp -Rp $(BASE_DIR)/packaging/debian/nginx.conf /etc/nginx/conf.d/balloon.conf
@cp -Rp $(BASE_DIR)/packaging/debian/nginx-web.conf /etc/nginx/conf.d/balloon/web.conf
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"postinstall": "echo > node_modules/kendo-ui-web/scripts/kendo.data.min.js; echo > node_modules/kendo-ui-web/scripts/kendo.draganddrop.min.js"
},
"dependencies": {
"@babel/polyfill": "^7.4.4",
"@babel/polyfill": "^7.6.0",
"@gyselroth/icon-collection": "^1.0.12",
"@openid/appauth": "^1.2.4",
"@openid/appauth": "^1.2.6",
"bundle-loader": "^0.5.6",
"i18next": "3.x",
"i18next-browser-languagedetector": "^2.2.4",
Expand All @@ -21,23 +21,23 @@
"i18next-xhr-backend": "^1.5.1",
"jquery-i18next": "*",
"kendo-ui-core": "^2018.3.1219",
"merge-jsons-webpack-plugin": "^1.0.19",
"mobile-pull-to-refresh": "^0.2.1",
"merge-jsons-webpack-plugin": "^1.0.20",
"mobile-pull-to-refresh": "^0.2.2",
"qrcode.es": "^1.0.0",
"showdown": "^1.9.0",
"showdown-highlight": "^2.1.3",
"simplemde": "^1.11.2",
"slideout": "https://github.com/raffis/slideout/tarball/direction_fix",
"sw-precache-webpack-plugin": "^0.11.5",
"ubuntu-fontface": "^0.1.13",
"uglifyjs-webpack-plugin": "^2.1.3",
"uglifyjs-webpack-plugin": "^2.2.0",
"webpack-pwa-manifest": "^4.0.0",
"workbox-webpack-plugin": "^4.3.1",
"workbox-window": "^4.3.1"
},
"devDependencies": {
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"@babel/core": "^7.6.2",
"@babel/preset-env": "^7.6.2",
"babel-loader": "^8.0.6",
"babel-plugin-transform-async-to-generator": "^6.24.1",
"babel-polyfill": "^6.26.0",
Expand All @@ -53,15 +53,15 @@
"mini-css-extract-plugin": "^0.4.5",
"napa": "^3.0.0",
"node-sass": "^4.12.0",
"sass-loader": "^7.1.0",
"sass-loader": "^7.3.1",
"source-map-loader": "^0.2.4",
"style-loader": "^0.23.1",
"svgxuse": "^1.2.6",
"url-loader": "^1.1.2",
"webpack": "^4.35.0",
"webpack-cli": "^3.3.4",
"webpack-dev-server": "^3.7.2",
"webpack-merge": "^4.2.1"
"webpack": "^4.41.0",
"webpack-cli": "^3.3.9",
"webpack-dev-server": "^3.8.1",
"webpack-merge": "^4.2.2"
},
"main": "index.html",
"repository": {
Expand Down
5 changes: 5 additions & 0 deletions packaging/debian/nginx-web.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
location / {
root /usr/share/balloon-web;
index index.html;
break;
}
21 changes: 21 additions & 0 deletions packaging/debian/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
server {
listen 80;
access_log /var/log/balloon/nginx_access.log;
error_log /var/log/balloon/nginx_error.log;
rewrite ^(.*) https://$host$1 permanent;
}

server {
listen 443;
client_max_body_size 16G;

access_log /var/log/balloon/nginx_access.log;
error_log /var/log/balloon/nginx_error.log;

ssl on;
ssl_certificate "/etc/ssl/balloon/chain.pem";
ssl_certificate_key "/etc/ssl/balloon/key.pem";
add_header Strict-Transport-Security "max-age=31556926";

include /etc/nginx/conf.d/balloon/*.conf;
}
9 changes: 9 additions & 0 deletions packaging/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,17 @@ if [[ ! -f /etc/ssl/balloon/key.pem && ! -f /etc/ssl/balloon/chain.pem ]]; then
mv chain.pem /etc/ssl/balloon
fi

if [ ! -d /etc/nginx/conf.d/balloon ]; then
mkdir /etc/nginx/conf.d/balloon
fi

if [ ! -f /etc/nginx/conf.d/balloon.conf ]; then
cp /usr/share/balloon-web/nginx/nginx.conf /etc/nginx/conf.d/balloon.conf
fi

if [ ! -f /etc/nginx/conf.d/balloon/web.conf ]; then
cp /usr/share/balloon-web/nginx/nginx-web.conf /etc/nginx/conf.d/balloon/web.conf
fi


service nginx restart
46 changes: 0 additions & 46 deletions packaging/nginx.conf

This file was deleted.

0 comments on commit 5af4462

Please sign in to comment.