Help installing with Portainer and Nginx Proxy Manager

I realize I’m probably out of my league here, but after trying all day I finally the front end to load. I can’t register a new user due to a status code 405, which I’m guessing means I’ve screwed up something with the API. I’m pretty new to self-hosting, so please assume I know just about nothing.

I have two things forwarding in Nginx Proxy Manager:

This is my portainer docker-compose: (I added spaces to urls since I’m new and it was blocking my post)

version: '3'

services:
  db:
    image: mariadb:10
    command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
    environment:
      MYSQL_ROOT_PASSWORD: xxxxxx
      MYSQL_USER: vikunja
      MYSQL_PASSWORD: xxxxxx
      MYSQL_DATABASE: vikunja
    volumes:
      - ./db:/var/lib/mysql
    restart: unless-stopped
  api:
    image: vikunja/api
    environment:
      VIKUNJA_DATABASE_HOST: db
      VIKUNJA_DATABASE_PASSWORD: xxxxxx
      VIKUNJA_DATABASE_TYPE: mysql
      VIKUNJA_DATABASE_USER: vikunja
      VIKUNJA_DATABASE_DATABASE: vikunja
      VIKUNJA_SERVICE_JWTSECRET: xxxxxx
      VIKUNJA_SERVICE_FRONTENDURL: h ttps://llama.lonalabs.com/
    ports:
      - 3456:3456
    volumes:
      - ./files:/app/vikunja/files
    depends_on:
      - db
    restart: unless-stopped
  frontend:
    image: vikunja/frontend
    ports:
      - 4321:80
    environment:
      VIKUNJA_API_URL: h ttp:/api.llama.lonalabs.com/api/v1
    restart: unless-stopped

I feel like I’m really close now, but after a few hours of trying different things I’m still stuck in the same place. Any help is greatly appreciated.

It looks like your setup should work, but I noticed the api is not behind tls but the frontend ist. Browsers usually block connections made from a secure context (in this case the frontend accessed via https) to an insecure one (the api is only accessible via http). You can check the api is accessible by opening /api/v1/info in a browser.

Once that works, try https://api.llama.lonalabs.com/ (without the /api/v1 part) as the api url in the frontend, but I’m not 100% sure about that one.

You were right. I just needed to add SSH to the api URL, and then use the https://api.llama.lonalabs.com without the /api/v1 part.

Thanks! It’s up and running. It really is a great looking app. Reminds me of the iOS Things app.

1 Like

Glad it’s working now! I’ve never used Things myself but it sure looks great.