Login webadmin issues

zurv4n
Posts: 1
Joined: Tue Feb 28, 2023 5:15 am

Login webadmin issues

Post by zurv4n »

Greetings all. I am having a similar issue to others but for the life of me I cannot figure it out. I am running a server on my own hardware (i7 w/ 32GB ram in an m.2). I also have a synology server on my network which is running a reverse proxy so I can limit the number of ports I need to expose. I have set up my subdomain name through cloudflare, got all the certificates for a secure connection and even copied the origin certificate into the dedicatedserver.xml. So when logging into the webadmin portal, the subdomain goes through cloudflare, to my router, to my synology, then to the hosting box. Now you know the path the information travels.

The page is live. I can access it no problem. The issue is when I login, it just stays on the login page, it does not progress further. It only actually logs in from within my network, not from outside my network. It was working before, but stopped a few days ago and I am losing my mind. I have restarted everything, reset my router, everything I could think of but it will not let me log in. I logged in from within my network and went to the webserver logs. I could see the requests being made and they return status code 200 Success but it won't go in.

Does anyone have any idea what may be stopping this from working?
fmb
Posts: 2
Joined: Sun Sep 03, 2023 1:25 am

Re: Login webadmin issues

Post by fmb »

I have the same Problem, have you solve the Problem?
Timo_Ho
Posts: 2
Joined: Fri May 02, 2014 4:10 pm

Re: Login webadmin issues

Post by Timo_Ho »

I have managed to solve this issue on my setup. Make sure your proxy is not modifying the request headers. My nginx server was set to use http2, that caused it to convert all headers to lowercase and the game server decided to ignore them.
Note for nginx, if any server uses http2, then all servers on the same port will use http2 too.
fmb
Posts: 2
Joined: Sun Sep 03, 2023 1:25 am

Re: Login webadmin issues

Post by fmb »

Timo_Ho wrote: Sat Mar 02, 2024 8:33 pm I have managed to solve this issue on my setup. Make sure your proxy is not modifying the request headers. My nginx server was set to use http2, that caused it to convert all headers to lowercase and the game server decided to ignore them.
Note for nginx, if any server uses http2, then all servers on the same port will use http2 too.
Can you share your nginx configuration?
Timo_Ho
Posts: 2
Joined: Fri May 02, 2014 4:10 pm

Re: Login webadmin issues

Post by Timo_Ho »

fmb wrote: Mon Mar 04, 2024 8:38 pm Can you share your nginx configuration?
I'm running the fs server and nginx as two separate docker containers on my server. It's a non standard way for farming simulator, but it works.

Here are the images I use and the nginx configuration:
site proxy config

Code: Select all

server {
    listen 8443 ssl;
    listen [::]:8443 ssl;

    server_name fs22.*;

    include /config/nginx/ssl.conf;
    include /config/nginx/security.conf;

    client_max_body_size 0;

    include /config/nginx/proxy.conf;

    location / {
        resolver 127.0.0.11 valid=30s;
        proxy_pass http://fs22_server:8080;
    }
}
proxy.conf

Code: Select all

## Version 2019/10/23 - Changelog: https://github.com/linuxserver/docker-letsencrypt/commits/master/root/defaults/proxy.conf

client_body_buffer_size 128k;

#Timeout if the real server is dead
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;

# Advanced Proxy Config
send_timeout 5m;
proxy_read_timeout 240;
proxy_send_timeout 240;
proxy_connect_timeout 240;

# TLS 1.3 early data
proxy_set_header Early-Data $ssl_early_data;

# Basic Proxy Config
proxy_set_header Host $host;
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 https;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Ssl on;
proxy_redirect  http://  $scheme://;
proxy_http_version 1.1;
proxy_set_header Connection "";
#proxy_cookie_path / "/; HTTPOnly; Secure"; # enable at your own risk, may break certain apps
proxy_cache_bypass $cookie_session;
proxy_no_cache $cookie_session;
proxy_buffers 32 4k;
proxy_headers_hash_bucket_size 128;
proxy_headers_hash_max_size 1024;
Post Reply