brianmiller / phvalheim-server

PhValheim backend server
GNU General Public License v2.0
28 stars 5 forks source link

Steam deployment issue #1

Closed croziors closed 1 year ago

croziors commented 1 year ago

Hello i just install but i try authentification i have probleme i use steam

https://hostname/authenticated.ph

but when i am after steam redirect to my url but don t use port 8080 just use hotname

how i can modifiy for have redirect https://hostname:8080/authenticated.ph

thx

brianmiller commented 1 year ago

Hello i just install but i try authentification i have probleme i use steam

https://hostname/authenticated.ph

but when i am after steam redirect to my url but don t use port 8080 just use hotname

how i can modifiy for have redirect https://hostname:8080/authenticated.ph

thx

Hello @croziors,

I'm happy to help here.

Are you using a reverse proxy or sending traffic directly to PhValheim from the internet?

You should be able to pass a port to the "phvaheimHost" variable on start. I mentioned in the readme I haven't tried without a reverse proxy+TLS. I'll go through some tests to see if we run can without it. For now, try passing the port to the variable mentioned above. You can see we take whatever you pass to the variable. https://github.com/brianmiller/phvalheim-server/blob/master/container/nginx/www/public/index.php#L77

brianmiller commented 1 year ago

My mistake on closing. I've reopened the issue and will look at it.

croziors commented 1 year ago

yes i have reserve proxy now but doesnt work http://valheim.kripy.lu/

Le jeu. 10 nov. 2022 à 17:25, theoriginalbrian @.***> a écrit :

Hello i just install but i try authentification i have probleme i use steam

https://hostname/authenticated.ph

but when i am after steam redirect to my url but don t use port 8080 just use hotname

how i can modifiy for have redirect https://hostname:8080/authenticated.ph

thx

Hello @croziors https://github.com/croziors,

I'm happy to help here.

Are you using a reverse proxy or sending traffic directly to PhValheim from the internet?

You should be able to pass a port to the "phvaheimHost" variable on start. I mentioned in the readme I haven't tried without a reverse proxy+TLS. I'll go through some tests to see if we run can without it. For now, try passing the port to the variable mentioned above. You can see we take whatever you pass to the variable.

https://github.com/brianmiller/phvalheim-server/blob/master/container/nginx/www/public/index.php#L77

— Reply to this email directly, view it on GitHub https://github.com/brianmiller/phvalheim-server/issues/1#issuecomment-1310553443, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEU5U2DZLWFMFX4LM6OPJS3WHUOWFANCNFSM6AAAAAAR4SBIFU . You are receiving this because you were mentioned.Message ID: @.***>

brianmiller commented 1 year ago

Oh perfect. That's the right way to do things. You just need to use the reverse proxy config I have posted in the readme.

NGINX+Let's Encrypt work nicely together. Are you experienced with certbot? If so, there's little you need to do other than tell your reverse proxy to use TLS.

Your external port will be 80/443 (to support HTTP->HTTPS redirect. Port 8080 will be behind your firewall.

croziors commented 1 year ago

thx work now and second point You don't have any worlds in your library.

Le jeu. 10 nov. 2022 à 18:31, theoriginalbrian @.***> a écrit :

Oh perfect. That's the right way to do things. You just need to use the reverse proxy config I have posted in the readme.

NGINX+Let's Encrypt work nicely together. Are you experienced with certbot? If so, there's little you need to do other than tell your reverse proxy to use TLS.

Your external port will be 80/443 (to support HTTP->HTTPS redirect. Port 8080 will be behind your firewall.

— Reply to this email directly, view it on GitHub https://github.com/brianmiller/phvalheim-server/issues/1#issuecomment-1310646098, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEU5U2AP3KLLHR6YWMX5XQLWHUWPNANCNFSM6AAAAAAR4SBIFU . You are receiving this because you were mentioned.Message ID: @.***>

brianmiller commented 1 year ago

Nice! For the library access, you just need to hit "Edit Citizens" in the admin interface and add the players you want to grant access to (their SteamID number).

This tool helps: https://www.steamidfinder.com/

Or you can just grab it from your Steam app. image

croziors commented 1 year ago

[image: image.png]

Le jeu. 10 nov. 2022 à 19:44, theoriginalbrian @.***> a écrit :

Nice! For the library access, you just need to hit "Edit Citizens" in the admin interface and add the players you want to grant access to (their SteamID number).

This tool helps: https://www.steamidfinder.com/

Or you can just grab it from your Steam app. [image: image] https://user-images.githubusercontent.com/342276/201179953-91f4f6ad-9920-4c6b-ab37-f8240b4d37ee.png

— Reply to this email directly, view it on GitHub https://github.com/brianmiller/phvalheim-server/issues/1#issuecomment-1310746577, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEU5U2DM7XXH6HNNAJRTHRLWHU677ANCNFSM6AAAAAAR4SBIFU . You are receiving this because you were mentioned.Message ID: @.***>

brianmiller commented 1 year ago

hmm.. it looks like you tried to post an update, but all I see is [image: image.png].

brianmiller commented 1 year ago

It looks like I need to add a few things to the readme. Thank you.

Your admin interface will be the server hosting PhValheim (behind the reverse proxy).

E.g., Public URL: https://phvalheim.mydomain.tld Admin interface: http://dockerhost:8080/admin

croziors commented 1 year ago

So what i need doing i am not sure understand sorry

On Thu, 10 Nov 2022 at 20:04, theoriginalbrian @.***> wrote:

It looks like I need to add a few things to the readme. Thank you.

Your admin interface will be the server hosting PhValheim (behind the reverse proxy).

E.g., Public URL: https://phvalheim.mydomain.tld Admin interface: http://dockerhost:8080/admin

— Reply to this email directly, view it on GitHub https://github.com/brianmiller/phvalheim-server/issues/1#issuecomment-1310767312, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEU5U2FTB6RVMAEQMJXS7SLWHVBKJANCNFSM6AAAAAAR4SBIFU . You are receiving this because you were mentioned.Message ID: @.***>

brianmiller commented 1 year ago

No worries.

You're almost there. In your admin interface, click on "Edit Citizens" for the world you want to grant access to.

Add all SteamIDs you want to have access to the world.

You can find player SteamIDs via the links I posted in my previous comment.

I may add an automatic SteamID in the future.

croziors commented 1 year ago

But i have nothing in interface i am available tmr for show you in discord if you want

Le ven. 11 nov. 2022 à 00:15, theoriginalbrian @.***> a écrit :

No worries.

You're almost there. In your admin interface, click on "Edit Citizens" for the world you want to grant access to.

Add all SteamIDs you want to have access to the world.

You can find player SteamIDs via the links I posted in my previous comment.

I may add an automatic SteamID in the future.

— Reply to this email directly, view it on GitHub https://github.com/brianmiller/phvalheim-server/issues/1#issuecomment-1311029199, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEU5U2HCBHKZ2O4GCGBQDNLWHV6YNANCNFSM6AAAAAAR4SBIFU . You are receiving this because you were mentioned.Message ID: @.***>

brianmiller commented 1 year ago

Sure. I'll post a discord channel invite tomorrow.

croziors commented 1 year ago

thx

Le ven. 11 nov. 2022 à 03:16, theoriginalbrian @.***> a écrit :

Sure. I'll post a discord channel invite tomorrow.

— Reply to this email directly, view it on GitHub https://github.com/brianmiller/phvalheim-server/issues/1#issuecomment-1311141713, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEU5U2FGXU4TYVWUJT2KTN3WHWT6NANCNFSM6AAAAAAR4SBIFU . You are receiving this because you were mentioned.Message ID: @.***>

brianmiller commented 1 year ago

What TZ are you in?

croziors commented 1 year ago

UTC+1

Le ven. 11 nov. 2022 à 16:35, theoriginalbrian @.***> a écrit :

What TZ are you in?

— Reply to this email directly, view it on GitHub https://github.com/brianmiller/phvalheim-server/issues/1#issuecomment-1311836858, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEU5U2EBDSZHZ4U7UQ6MHSTWHZRULANCNFSM6AAAAAAR4SBIFU . You are receiving this because you were mentioned.Message ID: @.***>

brianmiller commented 1 year ago

https://discord.gg/u9dAj5Z7

brianmiller commented 1 year ago

Can you give me the output of this command from within the container?

/opt/stateful/games/steamcmd/steamcmd.sh +login anonymous +quit

brianmiller commented 1 year ago

version 1.5 has been pushed to correct this issue

brianmiller commented 1 year ago

I'm closing this issue has the root cause as been resolved.

croziors commented 1 year ago

Hello what is limitation player of server ? is it possible add password ? thanks

Le jeu. 10 nov. 2022 à 18:10, Maxime B @.***> a écrit :

yes i have reserve proxy now but doesnt work http://valheim.kripy.lu/

Le jeu. 10 nov. 2022 à 17:25, theoriginalbrian @.***> a écrit :

Hello i just install but i try authentification i have probleme i use steam

https://hostname/authenticated.ph

but when i am after steam redirect to my url but don t use port 8080 just use hotname

how i can modifiy for have redirect https://hostname:8080/authenticated.ph

thx

Hello @croziors https://github.com/croziors,

I'm happy to help here.

Are you using a reverse proxy or sending traffic directly to PhValheim from the internet?

You should be able to pass a port to the "phvaheimHost" variable on start. I mentioned in the readme I haven't tried without a reverse proxy+TLS. I'll go through some tests to see if we run can without it. For now, try passing the port to the variable mentioned above. You can see we take whatever you pass to the variable.

https://github.com/brianmiller/phvalheim-server/blob/master/container/nginx/www/public/index.php#L77

— Reply to this email directly, view it on GitHub https://github.com/brianmiller/phvalheim-server/issues/1#issuecomment-1310553443, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEU5U2DZLWFMFX4LM6OPJS3WHUOWFANCNFSM6AAAAAAR4SBIFU . You are receiving this because you were mentioned.Message ID: @.***>