fix: Ajoute libraries essentielles pour démarrage serveur
- Inclut libraries/*.jar dans Git (21 MB) - Ajoute Scala 2.10.2 (library + compiler) - Ajoute launchwrapper, asm-all, jopt-simple, lzma - Corrige .gitignore pour versionner libraries - Corrige configuration RCON dans conteneur - Met à jour .env.example avec avertissement sécurité Résout: ClassNotFoundException au démarrage
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
# Configuration Docker NationsGlory
|
# Configuration Docker NationsGlory
|
||||||
# Copier ce fichier vers .env et ajuster les valeurs
|
# Copier ce fichier vers .env et ajuster les valeurs
|
||||||
|
|
||||||
# Mot de passe RCON (généré automatiquement si non défini)
|
# Mot de passe RCON
|
||||||
RCON_PASSWORD=minecraft
|
# ⚠️ IMPORTANT: Définir un mot de passe sécurisé
|
||||||
|
# Après modification, redémarrer: docker-compose restart
|
||||||
|
RCON_PASSWORD=ChangerCeMotDePasse
|
||||||
|
|
||||||
# Port Minecraft
|
# Port Minecraft
|
||||||
SERVER_PORT=25565
|
SERVER_PORT=25565
|
||||||
|
|||||||
7
.gitignore
vendored
7
.gitignore
vendored
@@ -43,14 +43,15 @@ ngcore_cache/
|
|||||||
customnpcs/
|
customnpcs/
|
||||||
|
|
||||||
# === FICHIERS JAR ===
|
# === FICHIERS JAR ===
|
||||||
# Ignorer tous les .jar SAUF ceux dans mods/ et plugins/ ET mcpc.jar
|
# Ignorer tous les .jar SAUF ceux dans mods/, plugins/, libraries/ ET mcpc.jar
|
||||||
*.jar
|
*.jar
|
||||||
!mods/*.jar
|
!mods/*.jar
|
||||||
!plugins/*.jar
|
!plugins/*.jar
|
||||||
|
!libraries/**/*.jar
|
||||||
!mcpc.jar
|
!mcpc.jar
|
||||||
|
|
||||||
# === LIBRARIES (Seront téléchargées) ===
|
# === LIBRARIES (Incluses dans Git pour éviter les téléchargements) ===
|
||||||
libraries/
|
# Note: Les libraries sont maintenant versionnées pour garantir le démarrage
|
||||||
|
|
||||||
# === DONNÉES PLUGINS ===
|
# === DONNÉES PLUGINS ===
|
||||||
plugins/Essentials/userdata/
|
plugins/Essentials/userdata/
|
||||||
|
|||||||
@@ -39,16 +39,13 @@ echo "rcon.password=VotreMotDePasseSecurise" >> server.properties
|
|||||||
echo "enable-rcon=true" >> server.properties
|
echo "enable-rcon=true" >> server.properties
|
||||||
```
|
```
|
||||||
|
|
||||||
**Méthode 2: Serveur en cours**
|
**Méthode 2: Serveur en cours (modification dans le conteneur)**
|
||||||
```bash
|
```bash
|
||||||
# Arrêter le serveur
|
# Modifier directement dans le conteneur
|
||||||
docker-compose down
|
docker exec mc-nationsglory sed -i 's/^rcon.password=.*/rcon.password=NouveauMotDePasse/' /data/server.properties
|
||||||
|
|
||||||
# Modifier la configuration
|
# Redémarrer pour appliquer
|
||||||
sed -i 's/^rcon.password=.*/rcon.password=NouveauMotDePasse/' server.properties
|
docker-compose restart
|
||||||
|
|
||||||
# Redémarrer
|
|
||||||
docker-compose up -d
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### 2. Tester RCON
|
### 2. Tester RCON
|
||||||
|
|||||||
BIN
libraries/lzma/lzma/0.0.1/lzma-0.0.1.jar
Normal file
BIN
libraries/lzma/lzma/0.0.1/lzma-0.0.1.jar
Normal file
Binary file not shown.
BIN
libraries/net/minecraft/launchwrapper/1.8/launchwrapper-1.8.jar
Normal file
BIN
libraries/net/minecraft/launchwrapper/1.8/launchwrapper-1.8.jar
Normal file
Binary file not shown.
BIN
libraries/net/sf/jopt-simple/jopt-simple/4.5/jopt-simple-4.5.jar
Normal file
BIN
libraries/net/sf/jopt-simple/jopt-simple/4.5/jopt-simple-4.5.jar
Normal file
Binary file not shown.
BIN
libraries/org/ow2/asm/asm-all/4.1/asm-all-4.1.jar
Normal file
BIN
libraries/org/ow2/asm/asm-all/4.1/asm-all-4.1.jar
Normal file
Binary file not shown.
BIN
libraries/org/scala-lang/scala-compiler/2.10.2/scala-compiler-2.10.2.jar
Executable file
BIN
libraries/org/scala-lang/scala-compiler/2.10.2/scala-compiler-2.10.2.jar
Executable file
Binary file not shown.
BIN
libraries/org/scala-lang/scala-library/2.10.2/scala-library-2.10.2.jar
Executable file
BIN
libraries/org/scala-lang/scala-library/2.10.2/scala-library-2.10.2.jar
Executable file
Binary file not shown.
Reference in New Issue
Block a user