Skip to content

Status HTTP-Server #318

Answered by Marcus-Rise
TheMBeat asked this question in Q&A
Mar 30, 2021 · 1 comments · 11 replies
Discussion options

You must be logged in to vote

A few days ago I dig in this question too.
You need to define env var HTTP_PORT, make server public via env var PUBLIC: 1, map selected tcp port
Then you can ping to public ip address of your server with path /status

docker-compose.yml

version: "3"
services:
  valheim:
    image: mbround18/valheim:latest
    ports:
      - 2459:2459/tcp
      ...
    env:
      - HTTP_PORT: 2459
      - PUBLIC: 1
      ...
$ curl {PUBLIC_SERVER_IP_ADDRESS}:2459/status

Additionally you can try to extract port number to env var in .env

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@TheMBeat
Comment options

@TheMBeat
Comment options

@bforbis
Comment options

@bforbis
Comment options

@mbround18
Comment options

Answer selected by TheMBeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants