镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

[FEATURE] Add coolify integration to the docs #107

Description

@waseemw

I got it working on coolify using this config, and wanted to share it so that it can be added to the docs:

  1. create 'empty docker compose' service (here user/pass is admin:admin) and secret is just random:
services:
  tinyauth:
    image: 'ghcr.io/steveiliop56/tinyauth:v3'
    container_name: tinyauth
    restart: unless-stopped
    environment:
      - SECRET=tOPwhbiMF4hbipPK4hpPK4hbipPK4hbb
      - 'APP_URL=https://auth.yourdomain.com'
      - 'USERS=admin:$$2a$$12$$CtdKwh6uzF1VkmdTDZje3eRilGu9Nj1kjiirevBvM3M6mAwzb43SW'

and for the service in coolify ui set the domain to https://auth.yourdomain.com:3000 so it points to 3000 in the container

  1. add dynamic configuration in proxy settings (don't change the address here, it should point to docker instance not public hostname)
http:
  middlewares:
    tinyauth:
      forwardAuth:
        address: 'http://tinyauth:3000/api/auth/traefik'
        trustForwardHeader: true
  1. then for every service, to protect it simply add to the labels:
- traefik.http.middlewares.tinyauth@file

Example webpage protected by tinyauth in coolify:

version: '3.8'
services:
  webserver:
    image: 'nginx:alpine'
    container_name: simple_default_webpage
    restart: unless-stopped
    labels:
      - traefik.http.middlewares.tinyauth@file

Activity

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

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions