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

Postiz won't login even on HTTPS environmtnes #422

Closed
1 task done
MessiasLima opened this issue Nov 8, 2024 · 2 comments
Closed
1 task done

Postiz won't login even on HTTPS environmtnes #422

MessiasLima opened this issue Nov 8, 2024 · 2 comments

Comments

@MessiasLima
Copy link

📜 Description

The application was set up with HTTPS, like recommended on the the docks. Im using NGINX proxy manager. However, the application does not perform the login properly. We dont have any kind of error on the browser console nor the container logs.

👟 Reproduction steps

The application was set up with the following docker compose file

name: Postiz
services:
  postiz:
    image: ghcr.io/gitroomhq/postiz-app:latest
    container_name: postiz
    restart: always
    environment:
      # You must change these. Replace `postiz.your-server.com` with your DNS name - what your web browser sees.
      MAIN_URL: "https://postiz.darth-maul.duckdns.org"
      FRONTEND_URL: "https://postiz.darth-maul.duckdns.org"
      NEXT_PUBLIC_BACKEND_URL: "https://postiz.darth-maul.duckdns.org/api"
      JWT_SECRET: "random string that is unique to every install - just type random characters here!"
 
      # These defaults are probably fine, but if you change your user/password, update it in the
      # postiz-postgres or postiz-redis services below.
      DATABASE_URL: "postgresql://postiz-user:postiz-password@postiz-postgres:5432/postiz-db-local"
      REDIS_URL: "redis://postiz-redis:6379"
      BACKEND_INTERNAL_URL: "http://localhost:3000"
      IS_GENERAL: "true" # Required for self-hosting.
      # The container images are pre-configured to use /uploads for file storage.
      # You probably should not change this unless you have a really good reason!
      STORAGE_PROVIDER: "local"
      UPLOAD_DIRECTORY: "/uploads"
      NEXT_PUBLIC_UPLOAD_DIRECTORY: "/uploads"
    volumes:
      - postiz-config:/config/
      - postiz-uploads:/uploads/
    ports:
      - 5000:5000
    networks:
      - postiz-network
    depends_on:
      postiz-postgres:
        condition: service_healthy
      postiz-redis:
        condition: service_healthy
 
  postiz-postgres:
    image: postgres:17-alpine
    container_name: postiz-postgres
    restart: always
    environment:
      POSTGRES_PASSWORD: postiz-password
      POSTGRES_USER: postiz-user
      POSTGRES_DB: postiz-db-local
    volumes:
      - postgres-volume:/var/lib/postgresql/data
    networks:
      - postiz-network
    healthcheck:
      test: pg_isready -U postiz-user -d postiz-db-local
      interval: 10s
      timeout: 3s
      retries: 3
  postiz-redis:
    image: redis:7.2
    container_name: postiz-redis
    restart: always
    healthcheck:
      test: redis-cli ping
      interval: 10s
      timeout: 3s
      retries: 3
    volumes:
      - postiz-redis-data:/data
    networks:
      - postiz-network
 
 
volumes:
  postgres-volume:
    external: false
 
  postiz-redis-data:
    external: false
 
  postiz-config:
    external: false
 
  postiz-uploads:
    external: false
 
networks:
  postiz-network:
    external: false

👍 Expected behavior

it should login normally as Im meeting all the specifications on the documenation.

It should at least throw some error message, so I could undestant what is wrong

👎 Actual Behavior with Screenshots

The applications seems to redirect and go back the current screen.

Heres a video showing the behaviour

https://youtu.be/6qY2rO4wTqc

💻 Operating system

Linux

🤖 Node Version

Im using the docker compose file from the docs

📃 Provide any additional context for the Bug.

It seems to me anything related to tokens or redirection

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

None

@MessiasLima
Copy link
Author

I testes on my local machine with everything pointing to localhost and it works flawlessly. The issue happens when I deploy on my home server

@nevo-david
Copy link
Contributor

Please open installation errors on discord: https://discord.postiz.com,
Closing this for now

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

No branches or pull requests

2 participants