Skip to content

Possible to run from behind reverse proxy to directory #122

Description

@artfulrobot

I have gotify running in docker on port 40001 and hoped to be able to use https://mypublic.domain/gotify/... to access it.

e.g. with this nginx config:

location ^~ /gotify/ {
  proxy_set_header X-Forwarded-Proto $scheme;                                                                                           
  proxy_set_header Host $host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_pass http://127.0.0.1:40001/;
}

but the webui does not work because the html references root-relative urls like /static/css/main.c1fdf91b.css

Is it possible to either configure it to use relative not root-relative paths, or to include a path prefix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:bugSomething isn't workingin:ui

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions