base prototype to test

This commit is contained in:
godot 2024-07-21 12:38:41 +02:00
parent ecdb7dcf8b
commit 9c61a19a70
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,22 @@
## The Plan
- [x] walkthruw
- [ ] prototype
- [ ] clean it
- [ ] script it
- [x] addons for Forge
## To DO!
- [ ] Firewall shinanigns
- [ ] Auto add plugins
- [ ] Config of velocity.toml
- [ ] IP || Tailscale DNS + zapis
- [ ] plugins/ambassador/Ambassador.toml config
## To learn
- [ ] What content of start.sh means
- [ ] Different types of forwarding
- [ ] SkinRestorer???
- [ ] DinMap
- [ ] Requred resources
- [ ] In their docs they have Tuning and Configuration pages

View File

@ -0,0 +1,29 @@
apt install openjdk-17-jre-headless
sudo apt install openjdk-17-jre-headless
wget https://api.papermc.io/v2/projects/velocity/versions/3.3.0-SNAPSHOT/builds/411/downloads/velocity-3.3.0-SNAPSHOT-411.jar
mkdir /opt/velocity
echo "#!/bin/sh
java -Xms1G -Xmx1G -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:MaxInlineLevel=15 -jar velocity*.jar" > start.sh
# I have no F ideal what it means
sudo chown -R godot:godot /opt/velocity/
chmod +x start.sh
### Nestopne se samo, mozna lepsi vytvorit strukturu za nej vlozit config a spustit az pres systemD
./start.sh
end
velocity.toml = config serveru na pripojeni