release-1.0.0 #24

Merged
cuqmbr merged 67 commits from develop into main 2025-08-14 14:57:21 +00:00
3 changed files with 23 additions and 1018886 deletions
Showing only changes of commit 06607e57d6 - Show all commits

View File

@ -16,12 +16,20 @@ VOLUME ${DATA_PATH}
ENV MEMORY=4G ENV MEMORY=4G
ENV PROXY_SECRET=change_me ENV PROXY_SECRET=change_me
ENV SERVERS=lobby="lobby:25565";survival="survival:25565" ENV SERVERS=lobby="lobby:25565";survival="survival:25565"
ENV TRY=lobby;survival ENV TRY=lobby;survival
ENV LIBRELOGIN_LIMBOS=limbo ENV LIBRELOGIN_LIMBOS=limbo
ENV LIBRELOGIN_LOBBIES=lobby ENV LIBRELOGIN_LOBBIES=lobby
ENV LIBRELOGIN_DB_HOST=127.0.0.1
ENV LIBRELOGIN_DB_PORT=3306
ENV LIBRELOGIN_DB_NAME=coreprotect_db
ENV LIBRELOGIN_DB_USERNAME=coreprotect
ENV LIBRELOGIN_DB_PASSWORD=0000
WORKDIR ${WORKDIR_PATH}/config WORKDIR ${WORKDIR_PATH}/config
EXPOSE 25565/tcp EXPOSE 25565/tcp
@ -41,4 +49,10 @@ CMD \
awk -v limbos_str="${LIBRELOGIN_LIMBOS}" '{ count=split(limbos_str,limbos_arr,";"); limbos_fmt_str = ""; for (i = 1; i <= count; i++) limbos_fmt_str = limbos_fmt_str limbos_arr[i] ",\n "; sub(/_LIBRELOGIN_LIMBOS_/,limbos_fmt_str); print }' plugins/librelogin/config.conf > plugins/librelogin/config.conf.tmp && mv -T -f plugins/librelogin/config.conf.tmp plugins/librelogin/config.conf && \ awk -v limbos_str="${LIBRELOGIN_LIMBOS}" '{ count=split(limbos_str,limbos_arr,";"); limbos_fmt_str = ""; for (i = 1; i <= count; i++) limbos_fmt_str = limbos_fmt_str limbos_arr[i] ",\n "; sub(/_LIBRELOGIN_LIMBOS_/,limbos_fmt_str); print }' plugins/librelogin/config.conf > plugins/librelogin/config.conf.tmp && mv -T -f plugins/librelogin/config.conf.tmp plugins/librelogin/config.conf && \
# Add lobby servers to librelogin config # Add lobby servers to librelogin config
awk -v lobbies_str="${LIBRELOGIN_LOBBIES}" '{ count=split(lobbies_str,lobbies_arr,";"); lobbies_fmt_str = ""; for (i = 1; i <= count; i++) lobbies_fmt_str = lobbies_fmt_str lobbies_arr[i] ",\n "; sub(/_LIBRELOGIN_LOBBIES_/,lobbies_fmt_str); print }' plugins/librelogin/config.conf > plugins/librelogin/config.conf.tmp && mv -T -f plugins/librelogin/config.conf.tmp plugins/librelogin/config.conf && \ awk -v lobbies_str="${LIBRELOGIN_LOBBIES}" '{ count=split(lobbies_str,lobbies_arr,";"); lobbies_fmt_str = ""; for (i = 1; i <= count; i++) lobbies_fmt_str = lobbies_fmt_str lobbies_arr[i] ",\n "; sub(/_LIBRELOGIN_LOBBIES_/,lobbies_fmt_str); print }' plugins/librelogin/config.conf > plugins/librelogin/config.conf.tmp && mv -T -f plugins/librelogin/config.conf.tmp plugins/librelogin/config.conf && \
# Add database info to librelogin config
sed -i "s/_LIBRELOGIN_DB_HOST_/${LIBRELOGIN_DB_HOST}/g" plugins/librelogin/config.conf && \
sed -i "s/_LIBRELOGIN_DB_PORT_/${LIBRELOGIN_DB_PORT}/g" plugins/librelogin/config.conf && \
sed -i "s/_LIBRELOGIN_DB_NAME_/${LIBRELOGIN_DB_NAME}/g" plugins/librelogin/config.conf && \
sed -i "s/_LIBRELOGIN_DB_USERNAME_/${LIBRELOGIN_DB_USERNAME}/g" plugins/librelogin/config.conf && \
sed -i "s/_LIBRELOGIN_DB_PASSWORD_/${LIBRELOGIN_DB_PASSWORD}/g" plugins/librelogin/config.conf && \
java -Xms${MEMORY} -Xmx${MEMORY} -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:MaxInlineLevel=15 -jar *.jar java -Xms${MEMORY} -Xmx${MEMORY} -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:MaxInlineLevel=15 -jar *.jar

View File

@ -32,19 +32,19 @@ database {
properties { properties {
mysql { mysql {
# The name of the database. # The name of the database.
database=librelogin database=_LIBRELOGIN_DB_NAME_
# The host of the database. # The host of the database.
host=localhost host=_LIBRELOGIN_DB_HOST_
# The JDBC URL of the database. Don't touch this if you don't know what you're doing. (Using jdbc:mariadb also works for pure mysql) # The JDBC URL of the database. Don't touch this if you don't know what you're doing. (Using jdbc:mariadb also works for pure mysql)
jdbc-url="jdbc:mariadb://%host%:%port%/%database%?autoReconnect=true&zeroDateTimeBehavior=convertToNull" jdbc-url="jdbc:mariadb://%host%:%port%/%database%?autoReconnect=true&zeroDateTimeBehavior=convertToNull"
# The maximum lifetime of a database connection in milliseconds. Don't touch this if you don't know what you're doing. # The maximum lifetime of a database connection in milliseconds. Don't touch this if you don't know what you're doing.
max-life-time=600000 max-life-time=600000
# The password of the database. # The password of the database.
password="" password="_LIBRELOGIN_DB_PASSWORD_"
# The port of the database. # The port of the database.
port=3306 port=_LIBRELOGIN_DB_PORT_
# The user of the database. # The user of the database.
user=root user=_LIBRELOGIN_DB_USERNAME_
} }
postgresql { postgresql {
# The name of the database. # The name of the database.
@ -69,7 +69,7 @@ database {
# librelogin-mysql - MySQL database, you must fill out the mysql section below. # librelogin-mysql - MySQL database, you must fill out the mysql section below.
# librelogin-postgresql - PostgreSQL database, you must fill out the postgresql section below. # librelogin-postgresql - PostgreSQL database, you must fill out the postgresql section below.
# librelogin-sqlite - SQLite database, default file is "database.db", you can change it in the sqlite section below. # librelogin-sqlite - SQLite database, default file is "database.db", you can change it in the sqlite section below.
type=librelogin-sqlite type=librelogin-mysql
} }
# Should we enable debug mode? This will print out debug messages to the console. # Should we enable debug mode? This will print out debug messages to the console.
debug=false debug=false

File diff suppressed because it is too large Load Diff