Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Layer Preview(OpenLayers) with wrong url #77

Open
shan1iu opened this issue Aug 17, 2021 · 1 comment
Open

Layer Preview(OpenLayers) with wrong url #77

shan1iu opened this issue Aug 17, 2021 · 1 comment

Comments

@shan1iu
Copy link

shan1iu commented Aug 17, 2021

i was trying to preview the new added layer with OpenLayers format but the redirect url starts with genode instead of localhost:8080 hence the openlayer js&css is not loaded correctly

http://geonode/geoserver/....
expected: http://localhost:8080/geoserver/....

i am using docker-compose and here's my yml file

version: "3.8"
services:
  geoserver:
    image: "geonode/geoserver"
    ports:
      - "8080:8080"
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock"
      - "./geoserver/data/:/geoserver_data/data"
@SteveTarter
Copy link

You need to change an internal Geoserver setting, the "Proxy Base URL", which you can find in General Settings.

ChangeGeoserverContext

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants