fix: something
This commit is contained in:
+14
-1
@@ -28,9 +28,18 @@ server {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
# A power action blocks until the game server has actually shut down.
|
||||
# ARK saves its world for minutes, so the default 60s would 504 on a
|
||||
# stop that is still progressing normally.
|
||||
proxy_read_timeout 400s;
|
||||
proxy_send_timeout 400s;
|
||||
|
||||
# File manager uploads.
|
||||
client_max_body_size 128m;
|
||||
}
|
||||
|
||||
# Socket.IO proxy
|
||||
# Socket.IO proxy (live console)
|
||||
location /socket.io/ {
|
||||
proxy_pass http://api:3000;
|
||||
proxy_http_version 1.1;
|
||||
@@ -39,6 +48,10 @@ server {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
# An idle console must not be torn down every 60s.
|
||||
proxy_read_timeout 1h;
|
||||
proxy_send_timeout 1h;
|
||||
}
|
||||
|
||||
# Static assets caching
|
||||
|
||||
@@ -64,17 +64,47 @@ interface AdditionalPortRequirement {
|
||||
}
|
||||
|
||||
function additionalPortRequirementsForGame(gameSlug: string): AdditionalPortRequirement[] {
|
||||
if (gameSlug.trim().toLowerCase() !== 'satisfactory') return [];
|
||||
const slug = gameSlug.trim().toLowerCase();
|
||||
|
||||
return [
|
||||
{
|
||||
key: 'satisfactory-messaging',
|
||||
label: 'Messaging Port',
|
||||
defaultPort: 8888,
|
||||
protocols: ['tcp'],
|
||||
description: 'Required by the Satisfactory server messaging API.',
|
||||
},
|
||||
];
|
||||
if (slug === 'satisfactory') {
|
||||
return [
|
||||
{
|
||||
key: 'satisfactory-messaging',
|
||||
label: 'Messaging Port',
|
||||
defaultPort: 8888,
|
||||
protocols: ['tcp'],
|
||||
description: 'Required by the Satisfactory server messaging API.',
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
if (slug === 'ark-se') {
|
||||
return [
|
||||
{
|
||||
key: 'ark-raw-udp',
|
||||
label: 'Raw UDP Socket Port',
|
||||
defaultPort: 7778,
|
||||
protocols: ['udp'],
|
||||
description: 'ARK opens a second UDP socket, normally the game port + 1.',
|
||||
},
|
||||
{
|
||||
key: 'ark-query',
|
||||
label: 'Steam Query Port',
|
||||
defaultPort: 27015,
|
||||
protocols: ['udp'],
|
||||
description: 'Used by the Steam server browser to list the server.',
|
||||
},
|
||||
{
|
||||
key: 'ark-rcon',
|
||||
label: 'RCON Port',
|
||||
defaultPort: 27020,
|
||||
protocols: ['tcp'],
|
||||
description: 'Console commands and the player list are sent over RCON.',
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
export function CreateServerPage() {
|
||||
|
||||
Reference in New Issue
Block a user