[Add] Docker compose [Add] setup.sh [Add] mewjo, xlagging as Mod's [Add]
T1X's icon [Fix] Some QOL
This commit is contained in:
parent
dbcd6630ce
commit
51f37c11a9
12 changed files with 53 additions and 30 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -7,5 +7,3 @@
|
||||||
**.jsonl
|
**.jsonl
|
||||||
**.ignore.**
|
**.ignore.**
|
||||||
snapshot*
|
snapshot*
|
||||||
cert.pem
|
|
||||||
key.pem
|
|
||||||
|
|
|
||||||
16
docker-compose.yml
Normal file
16
docker-compose.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
image: "jc21/nginx-proxy-manager:latest"
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
|
- "443:443"
|
||||||
|
- "81:81"
|
||||||
|
|
||||||
|
environment:
|
||||||
|
TZ: "Australia/Brisbane"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- ./data:/data
|
||||||
|
- ./letsencrypt:/etc/letsencrypt
|
||||||
13
rust-web.service
Normal file
13
rust-web.service
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Webserver
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=root
|
||||||
|
WorkingDirectory=/root/Anarchyphase-Website/server
|
||||||
|
ExecStart=/usr/bin/cargo run
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
@ -6,7 +6,6 @@ use axum::{
|
||||||
response::{IntoResponse, Response},
|
response::{IntoResponse, Response},
|
||||||
routing::get,
|
routing::get,
|
||||||
};
|
};
|
||||||
use axum_server::tls_rustls::RustlsConfig;
|
|
||||||
use std::net::SocketAddr;
|
use std::net::SocketAddr;
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use tokio::fs;
|
use tokio::fs;
|
||||||
|
|
@ -91,11 +90,6 @@ async fn main() {
|
||||||
axum::serve(listener, http_app).await.unwrap();
|
axum::serve(listener, http_app).await.unwrap();
|
||||||
});
|
});
|
||||||
|
|
||||||
// HTTPS on port 443
|
|
||||||
let certs_dir = website_root.join("certs");
|
|
||||||
let cert_path = certs_dir.join("cert.pem");
|
|
||||||
let key_path = certs_dir.join("key.pem");
|
|
||||||
|
|
||||||
http_handle.await.unwrap();
|
http_handle.await.unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
1
setup.sh
Normal file
1
setup.sh
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
sudo bash -c "apt update && apt install -y build-essential curl pkg-config libssl-dev && apt install cargo && apt update && apt upgrade -y && apt install docker.io docker-compose && systemctl enable --now docker && systemctl disable --now nginx && cd /root/Anarchyphase-Website && docker-compose up -d && ufw allow 81"
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
{
|
{
|
||||||
"date": "2026-04-21, by AlexEmmet",
|
"date": "2026-04-21, by AlexEmmet",
|
||||||
|
|
||||||
"head_img": "horse_rainbow.png",
|
"head_img": "village_sunset.png",
|
||||||
"file": "Home.md",
|
"file": "Home.md",
|
||||||
|
|
||||||
"title": "The /Home command",
|
"title": "The /Home command",
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
{
|
{
|
||||||
"date": "2026-04-21, by AlexEmmet",
|
"date": "2026-04-21, by AlexEmmet",
|
||||||
|
|
||||||
"head_img": "horse_rainbow.png",
|
"head_img": "village_sunset.png",
|
||||||
"file": "ThisWebsite.md",
|
"file": "ThisWebsite.md",
|
||||||
|
|
||||||
"title": "About This Website",
|
"title": "About This Website",
|
||||||
|
|
@ -38,10 +38,10 @@
|
||||||
{
|
{
|
||||||
"date": "2026-04-21, by AlexEmmet",
|
"date": "2026-04-21, by AlexEmmet",
|
||||||
|
|
||||||
"head_img": "horse_rainbow.png",
|
"head_img": "village_sunset.png",
|
||||||
"file": "AlexsOpinion.md",
|
"file": "AlexsOpinion.md",
|
||||||
|
|
||||||
"title": "Alex's Opinion",
|
"title": "Alex's Opinion",
|
||||||
"description": "The Anarchyphase balance Changes"
|
"description": "The Anarchyphase balance Changes."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -2,54 +2,56 @@
|
||||||
{
|
{
|
||||||
"icon": "morice.png",
|
"icon": "morice.png",
|
||||||
"name": "MoriceMC",
|
"name": "MoriceMC",
|
||||||
"priority": 0,
|
|
||||||
"role": "Owner & Lead Developer"
|
"role": "Owner & Lead Developer"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"icon": "ninivx.png",
|
"icon": "ninivx.png",
|
||||||
"name": "NiniVX",
|
"name": "NiniVX",
|
||||||
"priority": 1,
|
|
||||||
"role": "Community Manager"
|
"role": "Community Manager"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"icon": "burrata.png",
|
"icon": "burrata.png",
|
||||||
"name": "Burrata",
|
"name": "Burrata",
|
||||||
"priority": 1,
|
|
||||||
"role": "Administrator"
|
"role": "Administrator"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"icon": "pitrex.png",
|
"icon": "pitrex.png",
|
||||||
"name": "Pitrex",
|
"name": "Pitrex",
|
||||||
"priority": 2,
|
|
||||||
"role": "Moderator & Developer"
|
"role": "Moderator & Developer"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"icon": "cashius_to.png",
|
||||||
|
"name": "T1X",
|
||||||
|
"role": "Moderator (Yellow Bomb Guy)"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"icon": "litus.png",
|
"icon": "litus.png",
|
||||||
"name": "Litus",
|
"name": "Litus",
|
||||||
"priority": 2,
|
|
||||||
"role": "Moderator"
|
"role": "Moderator"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"icon": "ahnyokatzin.png",
|
"icon": "ahnyokatzin.png",
|
||||||
"name": "Ahnyokatzin",
|
"name": "Ahnyokatzin",
|
||||||
"priority": 2,
|
|
||||||
"role": "Moderator"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "T1X",
|
|
||||||
"priority": 2,
|
|
||||||
"role": "Moderator"
|
"role": "Moderator"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"icon": "harrpyrose.png",
|
"icon": "harrpyrose.png",
|
||||||
"name": "Harrpy",
|
"name": "Harrpy",
|
||||||
"priority": 2,
|
|
||||||
"role": "Moderator"
|
"role": "Moderator"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"icon": "alexemmet.png",
|
"icon": "alexemmet.png",
|
||||||
"name": "AlexEmmet",
|
"name": "AlexEmmet",
|
||||||
"priority": 3,
|
|
||||||
"role": "Web-Developer & Critic (Professional Hater)"
|
"role": "Web-Developer & Critic (Professional Hater)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon": "xlagging.png",
|
||||||
|
"name": "xLagging",
|
||||||
|
"role": "Moderator & Developer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"icon": "mewjo_.png",
|
||||||
|
"name": "Mewjo_",
|
||||||
|
"role": "Moderator"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
"acronym": "",
|
"acronym": "",
|
||||||
"leader": "Yippee",
|
"leader": "Yippee",
|
||||||
"vips": "Skely, xLeggings, Luxi",
|
"vips": "Skely, xLeggings, Luxi",
|
||||||
"description": "Me when I Orb it",
|
"description": "Me when I Orb it.",
|
||||||
"image": "village_sunset.png"
|
"image": "village_sunset.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
"acronym": "CT",
|
"acronym": "CT",
|
||||||
"leader": "MoriceMC",
|
"leader": "MoriceMC",
|
||||||
"vips": "Yeah he's the owner",
|
"vips": "Yeah he's the owner",
|
||||||
"description": "We are number one",
|
"description": "We are number one!",
|
||||||
"image": "icon.png",
|
"image": "icon.png",
|
||||||
"discord": "directs/ct"
|
"discord": "directs/ct"
|
||||||
},
|
},
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
"acronym": "",
|
"acronym": "",
|
||||||
"leader": "Liwitikiwi",
|
"leader": "Liwitikiwi",
|
||||||
"vips": "",
|
"vips": "",
|
||||||
"description": "Build borders to keep out foreign aliens",
|
"description": "Build borders to keep out hostiles. A safespace for builders.",
|
||||||
"image": "outpost.png"
|
"image": "outpost.png"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -46,7 +46,7 @@
|
||||||
"acronym": "PPN",
|
"acronym": "PPN",
|
||||||
"leader": "Hamb_y",
|
"leader": "Hamb_y",
|
||||||
"vips": "",
|
"vips": "",
|
||||||
"description": "Pact of Peace and neutrality lets anyone join no matter their team. Our goal is to promote peace within factions on the server",
|
"description": "Pact of Peace and neutrality lets anyone join no matter their team. Our goal is to promote peace within factions on the server!",
|
||||||
"image": "mountain.png",
|
"image": "mountain.png",
|
||||||
"discord": "directs/pact"
|
"discord": "directs/pact"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,6 @@ async function loadStaff() {
|
||||||
try {
|
try {
|
||||||
const response = await fetch("/api/staff.json");
|
const response = await fetch("/api/staff.json");
|
||||||
const staff = await response.json();
|
const staff = await response.json();
|
||||||
staff.sort((a, b) => a.priority - b.priority);
|
|
||||||
|
|
||||||
const container = document.getElementById("staff-grid");
|
const container = document.getElementById("staff-grid");
|
||||||
if (!container) return;
|
if (!container) return;
|
||||||
|
|
|
||||||
BIN
website/assets/cashius_to.png
Normal file
BIN
website/assets/cashius_to.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7 KiB |
BIN
website/assets/mewjo_.png
Normal file
BIN
website/assets/mewjo_.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.4 KiB |
BIN
website/assets/xlagging.png
Normal file
BIN
website/assets/xlagging.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.4 KiB |
Loading…
Reference in a new issue