Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse proxy base url #72

Closed
Brantlab opened this issue Feb 2, 2022 · 6 comments
Closed

Reverse proxy base url #72

Brantlab opened this issue Feb 2, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@Brantlab
Copy link

Brantlab commented Feb 2, 2022

Allow us to set the port in the base url. I have mine sitting behind reverse proxy and I end up at baseurl:5020 when the reverse proxy handles the the 80>5020 transversal.

@potts99
Copy link
Collaborator

potts99 commented Feb 2, 2022

Yeah another users has also raised a similar issue, I think its how i've got the baseurl set up, looking into it now should have an answer shortly :)

@potts99 potts99 added the bug Something isn't working label Feb 2, 2022
@potts99
Copy link
Collaborator

potts99 commented Feb 2, 2022

Hello

Could you test this for me

version: "3.1"

services:
  postgres:
    container_name: postgres
    image: postgres:latest
    restart: always
    volumes:
      - ./peppermint/db:/data/db
    environment: 
      POSTGRES_USER: peppermint
      POSTGRES_PASSWORD: 1234
      POSTGRES_DB: peppermint

  client:
    container_name: peppermint
    image: pepperlabs/peppermint:test
    ports:
      - 3001:3001
    restart: on-failure
    depends_on:
      - postgres
    environment:
      PORT: 3001
      DB_USERNAME: "peppermint"
      DB_PASSWORD: "1234"
      DB_HOST: "postgres"
      BASE_URL: "http://localhost:3001"

i'm guessing you would just need to change the base url to your reserves proxy url.
Currently setting up a linode box to test this myself

@potts99
Copy link
Collaborator

potts99 commented Feb 2, 2022

I have this working for myself with this docker compose file -> will update main after i get from the gym

version: "3.1"

services:
  postgres:
    container_name: postgres
    image: postgres:latest
    restart: always
    volumes:
      - ./peppermint/db:/data/db
    environment:
      POSTGRES_USER: peppermint
      POSTGRES_PASSWORD: 1234
      POSTGRES_DB: peppermint

  client:
    container_name: peppermint
    image: pepperlabs/peppermint:test
    ports:
      - 3001:3001
    restart: on-failure
    depends_on:
      - postgres
    expose:
      - 3001
    environment:
      PORT: 3001
      DB_USERNAME: "peppermint"
      DB_PASSWORD: "1234"
      DB_HOST: "postgres"
      BASE_URL: "https://test.peppermint.sh/"

@tzw9373
Copy link

tzw9373 commented Feb 2, 2022

With the new compose config it's now redirecting to the login page on successful auth with URL https://books.example.com/auth/login?callbackUrl=https://books.example.com/:3001/signin?csrf=true&error=SessionRequired.

@potts99
Copy link
Collaborator

potts99 commented Feb 2, 2022

Awesome I'll get this pushed to main and write some docs

@potts99
Copy link
Collaborator

potts99 commented Feb 2, 2022

https://docs.peppermint.sh/proxy

Here is a link to the guide that i wrote which should aid in anyone trying to set up peppermint behind a sub domain

@potts99 potts99 closed this as completed Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants