added zomboid server
This commit is contained in:
parent
22d1c94279
commit
62acfe1b0c
|
@ -1 +1 @@
|
||||||
2025-02-19T07:37:18Z
|
2025-02-19T07:45:19Z
|
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"default","LocalPath":"/home/chat","DockerfilePath":""}
|
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"default","LocalPath":"/home/chat","DockerfilePath":""}
|
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"default","LocalPath":"/home/chat","DockerfilePath":""}
|
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"default","LocalPath":"/home/chat","DockerfilePath":""}
|
|
@ -0,0 +1 @@
|
||||||
|
{"Target":"default","LocalPath":"/home/chat","DockerfilePath":""}
|
|
@ -41,3 +41,13 @@ services:
|
||||||
- 252:80
|
- 252:80
|
||||||
environment:
|
environment:
|
||||||
CACHE_SIZE: 50 # optional: message count stored. Defaults to zero.
|
CACHE_SIZE: 50 # optional: message count stored. Defaults to zero.
|
||||||
|
chat-pz:
|
||||||
|
build: .
|
||||||
|
# image: m1k1o/chat:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- ./vars/pz.json:/usr/src/app/html/vars.json
|
||||||
|
ports:
|
||||||
|
- 253:80
|
||||||
|
environment:
|
||||||
|
CACHE_SIZE: 50 # optional: message count stored. Defaults to zero.
|
||||||
|
|
|
@ -14,5 +14,10 @@
|
||||||
"4":{
|
"4":{
|
||||||
"name":"left 4 dead",
|
"name":"left 4 dead",
|
||||||
"url":"/left4dead"
|
"url":"/left4dead"
|
||||||
|
},
|
||||||
|
"5":{
|
||||||
|
"name":"project zomboid",
|
||||||
|
"url":"/zomboid"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -10,10 +10,16 @@ const html = path.join(__dirname, '/html');
|
||||||
console.log(obj["path"]);
|
console.log(obj["path"]);
|
||||||
app.use(obj["path"],express.static(html))
|
app.use(obj["path"],express.static(html))
|
||||||
app.set('etag', false);
|
app.set('etag', false);
|
||||||
|
|
||||||
|
|
||||||
app.get(obj["path"], (req, res) => {
|
app.get(obj["path"], (req, res) => {
|
||||||
res.sendFile(__dirname + '/html/index.html');
|
res.sendFile(__dirname + '/html/index.html');
|
||||||
})
|
})
|
||||||
|
|
||||||
|
app.get("*", (req, res) => {
|
||||||
|
res.location("https://n0r.su");
|
||||||
|
})
|
||||||
|
|
||||||
const port = process.argv[2] || 8090;
|
const port = process.argv[2] || 8090;
|
||||||
const http = require("http").Server(app);
|
const http = require("http").Server(app);
|
||||||
|
|
||||||
|
|
1
vars/pz.json
Normal file
1
vars/pz.json
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"title":"Доска объявлений для GAME SERVER ЧАТ | project zomboid |","msgs":"","path":"/zomboid/"}
|
Loading…
Reference in New Issue
Block a user