diff --git a/Dockerfile b/Dockerfile index bec5707..9dc10f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,22 +5,15 @@ MAINTAINER EstiNet ARG PORT_NUM ENV PORT_NUM ${PORT_NUM:-25450} -ARG EC_PORT_NUM -ENV EC_PORT_NUM ${EC_PORT_NUM:-7050} - -EXPOSE $EC_PORT_NUM $PORT_NUM +EXPOSE 19005 $PORT_NUM COPY . /usr/src/server WORKDIR /usr/src/server RUN echo server-port=$PORT_NUM >> server.properties -RUN echo port=$EC_PORT_NUM >> esticonsole.properties - -# RUN apk add --no-cache screen RUN mkdir /data RUN mkdir /data/logs -# CMD screen -S -X 'java -jar EstiConsole.jar\n' -CMD exec java -jar EstiConsole.jar +CMD exec EstiConsole/esticonsole diff --git a/EstiConsole.jar b/EstiConsole.jar deleted file mode 100644 index fa6177a..0000000 Binary files a/EstiConsole.jar and /dev/null differ diff --git a/EstiConsole/config.json b/EstiConsole/config.json new file mode 100644 index 0000000..9401dab --- /dev/null +++ b/EstiConsole/config.json @@ -0,0 +1,30 @@ +{ + "instance_name": "MinigameHub", + "instance_port": 19005, + "sslencryption": true, + "cert_file_path": "./server.crt", + "key_file_path": "./server.key", + "require_authentication": true, + "enable_root": true, + "master_key_location": "./masterkey.key", + "servers": [ + { + "instance_name": "MinigameHub", + "home_directory": "../", + "command_to_run": "java -Xms512M -Xmx2G -XX:+UseG1GC -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -d64 -server -jar minecraft_server.jar", + "max_lines": 2000, + "amount_of_lines_to_cut_on_max": 100, + "stop_process_command": "exit", + "unresponsive_kill_time_seconds": 20, + "minecraft_mode": true, + "start_process_on_initialize": true + } + ], + "proxied_servers": [], + "users": [ + { + "name": "estinet", + "password": "EstiNetwork?123" + } + ] +} diff --git a/EstiConsole/esticonsole b/EstiConsole/esticonsole new file mode 100755 index 0000000..56dabc9 Binary files /dev/null and b/EstiConsole/esticonsole differ diff --git a/EstiConsole/server.crt b/EstiConsole/server.crt new file mode 100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OtB0nxRhSVMu7pzKbXXHIj8dld+UwjXzz2YRYZnNJ+phGQs +cRmG5yxjrChIeW+yU6B0WNqMowsmGpfkVIC6nPD1SDFtbSteQ6knfCyJ5jXDMlJD +l3L1QVyxqGUJNNZJBlcK0rJ7COcbecE7eUrEd8Z1gPcffGarejiXVwrw5g8dq0fd +kx3d7A== +-----END CERTIFICATE----- diff --git a/EstiConsole/server.key b/EstiConsole/server.key new file mode 100644 index 0000000..63bc062 --- /dev/null +++ b/EstiConsole/server.key @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEowIBAAKCAQEAziGJrCWVOum68baGwGLFTnSTKOY087OlynKhPyhLq9mL35RC +1stkv3+kTfHFTAoAFDxhNVHp2Ufp4fPghQizPa+bxIvPSZbfdElnBqtDHICvlrA8 +7rffhJbUc/armTL4SyXmktcDyzd56HXPumSQ1JwBZ2jBa+7MmThVyGodQ3gq3Ixa +wv1/WlQiowWA3ERGsOAtc1WWYesUlCR4XmcVmYxhK4dm40TDJNunfSVMGvfMPR7S +VfoCEUruI6vtmh5q4Z7wGoQ00yfzwYba8BzjVu0EGxGUP5RTDEnIOlaAW6EA14Ih +neYn71cQjdzWwjbtvLPVx3Fqr0gKPyMh/NnwbQIDAQABAoIBAQCxbjTvNTqLB32f +ahn7qAlmSvoRDnct/skKxjj+AFWCizPXM+uEsHb8T4bCgQXvOfxvbrnOB8BfA4PS +tvXgDWkcA/j06dN36KJXmodQOkL+WdbKwtDwOt3vZ1VgrEdxC2qmZO1gICxn1Ezf +R+mS69Wu7MpYlNdJbLg4e0F7zbt6wn05ayeNoYnK9qKIgngE/IiIqxOLSOJ2WaLZ +ac4M4O5xpF4o8bm+K/qexRX7nlfMlOPaF3Yv//346y/opRrRsOig1CHLe+4oxXr7 +xGi2xRoHn7KPgZ1wFyXjNj3ilK6MkqURO7Di5VghySp14FrIn0d7ZCP/krNUliE/ +/2J808KBAoGBAPJVsBCXemn6piVq8r7TlEAOhhmojrKBgUdh+hGQ0dGqK4RzEWGY +3U39sg+e97/UYDqJQzz7mGmkjkk8jXv333wWFz0KF+iYeqIjCcQ6gkK37Ei2a2jf +TBhMvSr5N0qL6WSeWe1wniYgliYOeOsZ5groZa5wO3KmN0pAgd7SJ/xVAoGBANnB +N878XayrdocIvvu5V4uci4Ez4EJKHOdNlzCf9AEtiWo/PcqM+nyQksy98C2ZU5Za +qT8GF0DaxSK3WyEGhQajnCnH86ao/Ue9GI9Q7IIaoSH+KUKVwXobU3dd+OLHFut5 +5wKANVneJAaVV3cUcGXSRiIYktcg9xe248K4mTu5AoGAdfHgjGK9cMFOhh2kYd4m +ZHrtJ6XTNew0GKMGC/CZPlt9bKx4hDDbXS8hr9qmKFZcM4FFGXQ2vQwbOGfhULnW +qtUxoEK+WjWEUk+NXFVBuuk7djRa2KL9rUIEO9sp3v1zrcYobJkIT/RCP+mBTqO/ +RAXSH3F+bZGajWgSDXnpfjUCgYBMrEAeXbYOKoGdonK859Hvkrt8TuvT64yp1SQ7 +NtcP4xzTkFkNjP5WBgHqnaaIJ8jK1Dlru5VMfLuVMcKgqk8Eu28tNv6P3EjyjZ6s +N+5PEVlTQs78ZwatHBoTmb8c+sUTPOUeeE5Qymsc9lDJ2SSKdbPEJarunOjkLL2d +vqoV4QKBgFtJvHtvRyXUX+hHpXTrX2N2RT1aPH4RSaC7XBouFjWBVJYDs06amz65 +ED/pJ2Jqwl7q9QFj1Ud8st/naSMBJlnz5HwDqk5viqa4/9qUbxx/uTDbNE99a/Jl +sSmfL26t1Psj96Pr77SYxSnhNw4UwSRaqQU6ungLxmAtFW8fNVmk +-----END RSA PRIVATE KEY----- diff --git a/esticonsole.properties b/esticonsole.properties deleted file mode 100644 index b1ef896..0000000 --- a/esticonsole.properties +++ /dev/null @@ -1,11 +0,0 @@ -#Tue Sep 05 17:05:21 EDT 2017 -server_name=MinigameHub -min_ram=512M -autoRestart=yes -amount_of_lines_to_cut_on_max=500 -mode=SPIGOT -timeAutoRestart=48 -server_jar_name=minecraft_server.jar -password=EstiNetwork?123 -max_lines=5000 -max_ram=2G