Switch to teier.net Domain
This commit is contained in:
parent
a219b17996
commit
10bdaa2402
|
@ -9,4 +9,5 @@ COPY ./docker-entrypoint.sh /minecraft/
|
||||||
COPY ./eula.txt /minecraft/
|
COPY ./eula.txt /minecraft/
|
||||||
COPY ./server.template.properties /minecraft/
|
COPY ./server.template.properties /minecraft/
|
||||||
EXPOSE 25565
|
EXPOSE 25565
|
||||||
|
EXPOSE 8123
|
||||||
ENTRYPOINT ["/bin/bash", "/minecraft/docker-entrypoint.sh"]
|
ENTRYPOINT ["/bin/bash", "/minecraft/docker-entrypoint.sh"]
|
||||||
|
|
|
@ -6,10 +6,16 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- /var/minecraft/world:/minecraft/world
|
- /var/minecraft/world:/minecraft/world
|
||||||
|
- /var/minecraft/world_nether:/minecraft/world_nether
|
||||||
|
- /var/minecraft/world_the_end:/minecraft/world_the_end
|
||||||
- /var/minecraft/ops.json:/minecraft/ops.json
|
- /var/minecraft/ops.json:/minecraft/ops.json
|
||||||
- /var/minecraft/whitelist.json:/minecraft/whitelist.json
|
- /var/minecraft/whitelist.json:/minecraft/whitelist.json
|
||||||
- /var/minecraft/banned-players.json:/minecraft/banned-player.json
|
- /var/minecraft/banned-players.json:/minecraft/banned-player.json
|
||||||
- /var/minecraft/banned-ips.json:/minecraft/banned-ips.json
|
- /var/minecraft/banned-ips.json:/minecraft/banned-ips.json
|
||||||
|
- /var/minecraft/permissions.yml:/minecraft/permissions.yml
|
||||||
|
- /var/minecraft/plugins:/minecraft/plugins
|
||||||
|
- /var/minecraft/bukkit.yml:/minecraft/bukkit.yml
|
||||||
|
- /var/minecraft/spigot.yml:/minecraft/spigot.yml
|
||||||
environment:
|
environment:
|
||||||
PORT: "25565"
|
PORT: "25565"
|
||||||
ENABLE_COMMAND_BLOCK: "true"
|
ENABLE_COMMAND_BLOCK: "true"
|
||||||
|
@ -18,5 +24,8 @@ services:
|
||||||
DIFFICULTY: "easy"
|
DIFFICULTY: "easy"
|
||||||
MAX_PLAYERS: "20"
|
MAX_PLAYERS: "20"
|
||||||
ENABLED_WHITELIST: "true"
|
ENABLED_WHITELIST: "true"
|
||||||
|
ONLINE_MODE: "true"
|
||||||
|
RESOURCE_PACK: "http://mc.teier.net/ovos.zip"
|
||||||
ports:
|
ports:
|
||||||
- 25565:25565
|
- 25565:25565
|
||||||
|
- 8123:8123
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
envsubst </minecraft/server.template.properties >/minecraft/server.properties
|
envsubst </minecraft/server.template.properties >/minecraft/server.properties
|
||||||
cd /minecraft
|
cd /minecraft
|
||||||
java -Xms3G -Xmx3G -jar server.jar nogui
|
java -Xms4G -Xmx4G -jar server.jar nogui
|
||||||
|
|
|
@ -15,7 +15,7 @@ network-compression-threshold=256
|
||||||
max-tick-time=60000
|
max-tick-time=60000
|
||||||
max-players=${MAX_PLAYERS}
|
max-players=${MAX_PLAYERS}
|
||||||
use-native-transport=true
|
use-native-transport=true
|
||||||
online-mode=true
|
online-mode=${ONLINE_MODE}
|
||||||
enable-status=true
|
enable-status=true
|
||||||
allow-flight=false
|
allow-flight=false
|
||||||
broadcast-rcon-to-ops=true
|
broadcast-rcon-to-ops=true
|
||||||
|
@ -28,7 +28,7 @@ enable-rcon=false
|
||||||
sync-chunk-writes=true
|
sync-chunk-writes=true
|
||||||
op-permission-level=4
|
op-permission-level=4
|
||||||
prevent-proxy-connections=false
|
prevent-proxy-connections=false
|
||||||
resource-pack=
|
resource-pack=${RESOURCE_PACK}
|
||||||
entity-broadcast-range-percentage=100
|
entity-broadcast-range-percentage=100
|
||||||
player-idle-timeout=0
|
player-idle-timeout=0
|
||||||
rcon.password=
|
rcon.password=
|
||||||
|
|
|
@ -47,5 +47,5 @@
|
||||||
dest: /dc/minecraft/
|
dest: /dc/minecraft/
|
||||||
|
|
||||||
- name: Start minecraft
|
- name: Start minecraft
|
||||||
shell: "cd /dc/minecraft && docker-compose up -d"
|
shell: "cd /dc/minecraft && docker-compose up -d --build"
|
||||||
|
|
|
@ -15,9 +15,9 @@ services:
|
||||||
POSTGRES_USER: nextcloud
|
POSTGRES_USER: nextcloud
|
||||||
POSTGRES_HOST: postgres
|
POSTGRES_HOST: postgres
|
||||||
POSTGRES_PASSWORD: ${POSTGRES_DB_PASSWORD}
|
POSTGRES_PASSWORD: ${POSTGRES_DB_PASSWORD}
|
||||||
TRUSTED_PROXIES: "cloud.teier.eu 138.201.74.231 172.0.0.1/8"
|
TRUSTED_PROXIES: "cloud.teier.net 138.201.74.231 172.0.0.1/8"
|
||||||
APACHE_DISABLE_REWRITE_IP: "1"
|
APACHE_DISABLE_REWRITE_IP: "1"
|
||||||
OVERWRITEHOST: "cloud.teier.eu"
|
OVERWRITEHOST: "cloud.teier.net"
|
||||||
OVERWRITEPROTOCOL: "https"
|
OVERWRITEPROTOCOL: "https"
|
||||||
OVERWRITEWEBROOT: "/"
|
OVERWRITEWEBROOT: "/"
|
||||||
OVERWRITECONADDR: "138.201.74.231"
|
OVERWRITECONADDR: "138.201.74.231"
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
shell: "rm -f /etc/nginx/sites-enabled/*"
|
shell: "rm -f /etc/nginx/sites-enabled/*"
|
||||||
|
|
||||||
- name: Get Certificate
|
- name: Get Certificate
|
||||||
shell: certbot certonly --standalone --preferred-challenges http -m mathias.teier@icloud.com --agree-tos -n -d teier.eu -d cloud.teier.eu -d nummus.teier.eu -d www.teier.eu -d collabora.teier.eu -d matrix.teier.eu -d kagent.at -d www.kagent.at -d git.kagent.at
|
shell: certbot certonly --standalone --preferred-challenges http -m mathias.teier@icloud.com --agree-tos -n -d teier.eu -d cloud.teier.eu -d nummus.teier.eu -d www.teier.eu -d collabora.teier.eu -d matrix.teier.eu -d kagent.at -d www.kagent.at -d git.kagent.at -d mc.teier.eu
|
||||||
|
|
||||||
- name: Install nginx server config
|
- name: Install nginx server config
|
||||||
copy:
|
copy:
|
||||||
|
|
|
@ -0,0 +1,40 @@
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name mc.teier.net;
|
||||||
|
location / {
|
||||||
|
return 301 https://mc.teier.net:443$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /ovos.zip {
|
||||||
|
alias /var/www/html/mc/ovos.zip;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl http2;
|
||||||
|
server_name mc.teier.net;
|
||||||
|
|
||||||
|
ssl on;
|
||||||
|
ssl_certificate /etc/letsencrypt/live/teier.net/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/teier.net/privkey.pem;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://127.0.0.1:8123/;
|
||||||
|
|
||||||
|
# Configuration for WebSockets
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection $connection_upgrade;
|
||||||
|
proxy_cache off;
|
||||||
|
|
||||||
|
# Configuration for ServerSentEvents
|
||||||
|
proxy_buffering off;
|
||||||
|
|
||||||
|
# Configuration for LongPolling or if your KeepAliveInterval is longer than 60 seconds
|
||||||
|
proxy_read_timeout 100s;
|
||||||
|
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Frame-Options "SAMEORIGIN";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name mc.teier.eu;
|
||||||
|
return 301 https://mc.teier.net:443$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl http2;
|
||||||
|
server_name mc.teier.eu;
|
||||||
|
|
||||||
|
ssl on;
|
||||||
|
ssl_certificate /etc/letsencrypt/live/teier.net/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/teier.net/privkey.pem;
|
||||||
|
|
||||||
|
return 301 https://mc.teier.net:443$request_uri;
|
||||||
|
}
|
|
@ -1,16 +1,16 @@
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name cloud.teier.eu;
|
server_name cloud.teier.net;
|
||||||
return 301 https://cloud.teier.eu:443$request_uri;
|
return 301 https://cloud.teier.net:443$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
server_name cloud.teier.eu;
|
server_name cloud.teier.net;
|
||||||
|
|
||||||
ssl on;
|
ssl on;
|
||||||
ssl_certificate /etc/letsencrypt/live/teier.eu/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/teier.net/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/teier.eu/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/teier.net/privkey.pem;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:8081/;
|
proxy_pass http://127.0.0.1:8081/;
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name cloud.teier.eu;
|
||||||
|
return 301 https://cloud.teier.net:443$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl http2;
|
||||||
|
server_name cloud.teier.eu;
|
||||||
|
|
||||||
|
ssl on;
|
||||||
|
ssl_certificate /etc/letsencrypt/live/teier.eu/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/teier.eu/privkey.pem;
|
||||||
|
|
||||||
|
return 301 https://cloud.teier.net:443$request_uri;
|
||||||
|
}
|
|
@ -1,17 +1,17 @@
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name nummus.teier.eu;
|
server_name nummus.teier.net;
|
||||||
return 301 https://$server_name:443$request_uri;
|
return 301 https://$server_name:443$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443;
|
listen 443;
|
||||||
server_name nummus.teier.eu;
|
server_name nummus.teier.net;
|
||||||
|
|
||||||
ssl on;
|
ssl on;
|
||||||
ssl_certificate /etc/letsencrypt/live/teier.eu/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/teier.net/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/teier.eu/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/teier.net/privkey.pem;
|
||||||
ssl_trusted_certificate /etc/letsencrypt/live/teier.eu/fullchain.pem;
|
ssl_trusted_certificate /etc/letsencrypt/live/teier.net/fullchain.pem;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:8082;
|
proxy_pass http://127.0.0.1:8082;
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name teier.eu www.teier.eu;
|
server_name teier.net www.teier.net;
|
||||||
return 301 https://www.teier.eu:443$request_uri;
|
return 301 https://www.teier.net:443$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
server_name teier.eu www.teier.eu;
|
server_name teier.net www.teier.net;
|
||||||
|
|
||||||
root /var/www/html/website;
|
root /var/www/html/website;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
ssl on;
|
ssl on;
|
||||||
ssl_certificate /etc/letsencrypt/live/teier.eu/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/teier.net/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/teier.eu/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/teier.net/privkey.pem;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name teier.eu www.teier.eu;
|
||||||
|
return 301 https://www.teier.net:443$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl http2;
|
||||||
|
server_name teier.eu www.teier.eu;
|
||||||
|
|
||||||
|
ssl on;
|
||||||
|
ssl_certificate /etc/letsencrypt/live/teier.eu/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/teier.eu/privkey.pem;
|
||||||
|
|
||||||
|
return 301 https://www.teier.net:443$request_uri;
|
||||||
|
}
|
Loading…
Reference in New Issue