Skip to content

Custom domain name with reverse proxy? #268

@Roemer

Description

@Roemer

Describe your issue

I am using a custom nginx reverse proxy and custom compose stacks for deployments.
In my nginx, I have this entry:

# Wikidocs
server {
    listen      443 ssl;
    server_name wiki.mydomain.com;
    include conf.d/ssl.conf;

    location / {
        proxy_pass              http://wikidocs:80;
        client_max_body_size    0;
    }
}

and wikidocs looks like:

services:
  wikidocs:
    image: zavy86/wikidocs:1.0.81
    container_name: wikidocs
    environment:
      - PUID=1000
      - PGID=1000
    volumes:
      - wikidocs-data:/datasets
    networks:
      - service-net

volumes:
  wikidocs-data:

networks:
  service-net:
    external: true

Nginx is also in the service-net network.

This basically works but when I try to login in wikidocs, it redirects the browser to http://wikidocs/homepage?auth. Is this because my service or container is named like this? Is there a way to override this url? Most other services provide an environment variable like BASE_URL or WIKIDOCS_HOST or WIKIDOCS_URL or something that allows to manually set the url that should be used to build all links.

Device and settings

Running wikidocs in Docker with Compose

Steps to reproduce

See description

Screenshots (optional)

No response

Extra fields

  • I'd like to work on this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions