prod setup

This commit is contained in:
anhefti 2019-09-05 13:52:41 +02:00
parent 4dfba2e392
commit b34f83e095
3 changed files with 18 additions and 18 deletions

View file

@ -0,0 +1 @@
/secrets

View file

@ -22,7 +22,7 @@ server.ssl.enabled-protocols=TLSv1,TLSv1.1,TLSv1.2
# Default logging level in the form "logging.level" + namespace=LEVEL
logging.level.ch=INFO
logging.file=log/sebserver.log
logging.file=/sebserver/log/sebserver.log
# If webservice or gui runs on ssl and this flag is true, an integrated redirect from http to https is activated
# Disable this if a redirect is done by a pre-processing proxy

View file

@ -29,22 +29,21 @@ WORKDIR /sebserver
COPY --from=1 /sebserver/target/seb-server-"$SEBSERVER_VERSION".jar /sebserver
ENTRYPOINT exec java \
-Xms64M \
-Xmx1G \
# Set this propertie to enable SSL debuging
# -Djavax.net.debug=ssl \
# Set this properties to enable JMX profiling
# -Dcom.sun.management.jmxremote \
# -Dcom.sun.management.jmxremote.port=9090 \
# -Dcom.sun.management.jmxremote.rmi.port=9090 \
# -Djava.rmi.server.hostname=127.0.0.1 \
# -Dcom.sun.management.jmxremote.ssl=false \
# -Dcom.sun.management.jmxremote.authenticate=false \
-jar seb-server-"${SEBSERVER_VERSION}".jar \
--spring.profiles.active=prod \
--spring.config.location=file:/sebserver/config/,classpath:/config/ \
--sebserver.certs.password="${KEYSTORE_PWD}" \
--sebserver.mariadb.password="${MYSQL_ROOT_PASSWORD}" \
--sebserver.password="${SEBSERVER_PWD}"
-Xms64M \
-Xmx1G \
# Set this for SSL debunging
# -Djavax.net.debug=ssl \
-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=9090 \
-Dcom.sun.management.jmxremote.rmi.port=9090 \
-Djava.rmi.server.hostname=127.0.0.1 \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false \
-jar seb-server-"${SEBSERVER_VERSION}".jar \
--spring.profiles.active=prod \
--spring.config.location=file:/sebserver/config/,classpath:/config/ \
--sebserver.certs.password="${KEYSTORE_PWD}" \
--sebserver.mariadb.password="${MYSQL_ROOT_PASSWORD}" \
--sebserver.password="${SEBSERVER_PWD}"
EXPOSE 443 8080 9090