dodona-edu / dolos

:detective: Source code plagiarism detection
https://dolos.ugent.be
MIT License
248 stars 31 forks source link

Can’t host dolos web app publicly #1439

Closed fatenocaster closed 5 months ago

fatenocaster commented 5 months ago

Describe the bug cant host dolos web app publicly

To Reproduce Steps to reproduce the behavior:

  1. modify docker-compose.yml as follows:

    environment:
      VITE_HOST: 0.0.0.0
      VITE_PORT: 8080
      #VITE_API_URL: http://localhost:3000
      VITE_API_URL: http://192.168.111.200:3000
      VITE_MODE: server

    change VITE_API_URL to http://192.168.111.200:3000(my public ip)

  2. delete original web image : sudo docker image rm dolos-web

  3. rebuild and start docker containers suo docker-compose up -d

Expected behavior upload code samples but still redirect to localhost:3000

fatenocaster commented 5 months ago

sorry but it's not bug .I have no idea how to change the issue label

fatenocaster commented 5 months ago

I figured out how to solve this problem . In fact the api configuration in docker-compose.yml should also be modified like

#DOLOS_API_HOSTS: localhost:3000
      DOLOS_API_HOSTS: 192.168.111.200:3000
fatenocaster commented 5 months ago

This issue can be closed

rien commented 5 months ago

Hi @fatenocaster, thank you for reaching out.

I will update documentation to make it clear which environment variables need to be changed.

If you encounter other problems or if you have more questions: I've now added a "Request help" issue template.