Skip to content

Cannot get it to work changing the API port #5332

@Hallsie

Description

@Hallsie

I am following the directions...

cd /
mkdir cset
cd cset
git clone https://github.com/cisagov/cset
cp .env.example ./.env
nano .env         change api port to 5555, save, and exit
docker compose up -d

Note: I want to change the API port as I am already using 5000 on this server for another service.

I get the notice that everything is created and started. I check docker ps to make sure it looks right:
e06058a714a2 ghcr.io/cisagov/cset/api:latest "dotnet CSETWebCore.…" About a minute ago Up About a minute 0.0.0.0:5555->5000/tcp, [::]:5555->5000/tcp cset-api

I give it a moment to make sure everything that needs to talk to one another does so. I hit http://IP:4200 and get the login page. About 3 seconds later big red bar: No Server Connection [Details]

I get the following message:
The server cannot be reached. Please contact a system administrator to verify that the server URL is properly configured and that the CSET API is running.

Server URL
http://localhost:5555/

That SHOULD be correct as 5555 is the API port and it should be looking at localhost unless I am understanding something incorrectly. I went back through the .env and the config.yml and I do not see any place

I posted about this before and I thought it was resolved. Am I doing something incorrectly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions