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 # Default logging level in the form "logging.level" + namespace=LEVEL
logging.level.ch=INFO 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 # 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 # 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 COPY --from=1 /sebserver/target/seb-server-"$SEBSERVER_VERSION".jar /sebserver
ENTRYPOINT exec java \ ENTRYPOINT exec java \
-Xms64M \ -Xms64M \
-Xmx1G \ -Xmx1G \
# Set this propertie to enable SSL debuging # Set this for SSL debunging
# -Djavax.net.debug=ssl \ # -Djavax.net.debug=ssl \
# Set this properties to enable JMX profiling -Dcom.sun.management.jmxremote \
# -Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=9090 \
# -Dcom.sun.management.jmxremote.port=9090 \ -Dcom.sun.management.jmxremote.rmi.port=9090 \
# -Dcom.sun.management.jmxremote.rmi.port=9090 \ -Djava.rmi.server.hostname=127.0.0.1 \
# -Djava.rmi.server.hostname=127.0.0.1 \ -Dcom.sun.management.jmxremote.ssl=false \
# -Dcom.sun.management.jmxremote.ssl=false \ -Dcom.sun.management.jmxremote.authenticate=false \
# -Dcom.sun.management.jmxremote.authenticate=false \ -jar seb-server-"${SEBSERVER_VERSION}".jar \
-jar seb-server-"${SEBSERVER_VERSION}".jar \ --spring.profiles.active=prod \
--spring.profiles.active=prod \ --spring.config.location=file:/sebserver/config/,classpath:/config/ \
--spring.config.location=file:/sebserver/config/,classpath:/config/ \ --sebserver.certs.password="${KEYSTORE_PWD}" \
--sebserver.certs.password="${KEYSTORE_PWD}" \ --sebserver.mariadb.password="${MYSQL_ROOT_PASSWORD}" \
--sebserver.mariadb.password="${MYSQL_ROOT_PASSWORD}" \ --sebserver.password="${SEBSERVER_PWD}"
--sebserver.password="${SEBSERVER_PWD}"
EXPOSE 443 8080 9090 EXPOSE 443 8080 9090