forked from coop-cloud/outline
Compare commits
9 Commits
0.4.0+0.64
...
old-databa
Author | SHA1 | Date | |
---|---|---|---|
e995ed7ad9 | |||
7685fe6abf | |||
c5c9dcfd31 | |||
be55317dd0 | |||
9a698a557b | |||
cfbeb3be67 | |||
08ec0295c5
|
|||
9bc4e9855a
|
|||
0351cf3e80
|
@ -43,10 +43,6 @@ _As of 2022-03-30, this requires `abra` RC version, run `abra upgrade --rc`._
|
|||||||
|
|
||||||
Avoid the use of quotes (`"..."`) as much as possible, the NodeJS scripts flip out for some reason on some vars.
|
Avoid the use of quotes (`"..."`) as much as possible, the NodeJS scripts flip out for some reason on some vars.
|
||||||
|
|
||||||
### Multiple users logging in & generic oauth
|
|
||||||
|
|
||||||
`COMPOSE_FILE="compose.yml:compose.patch.yml"`
|
|
||||||
|
|
||||||
### Deleting a user (e.g. to fix SSO weirdness)
|
### Deleting a user (e.g. to fix SSO weirdness)
|
||||||
|
|
||||||
`abra app cmd YOURAPPNAME db delete_user <username-to-delete> <username-to-replace>`
|
`abra app cmd YOURAPPNAME db delete_user <username-to-delete> <username-to-replace>`
|
||||||
|
2
abra.sh
2
abra.sh
@ -1,4 +1,4 @@
|
|||||||
export APP_ENTRYPOINT_VERSION=v5
|
export APP_ENTRYPOINT_VERSION=v6
|
||||||
|
|
||||||
migrate() {
|
migrate() {
|
||||||
export DATABASE_PASSWORD=$(cat /run/secrets/db_password)
|
export DATABASE_PASSWORD=$(cat /run/secrets/db_password)
|
||||||
|
@ -8,6 +8,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- GOOGLE_CLIENT_ID
|
- GOOGLE_CLIENT_ID
|
||||||
- GOOGLE_ENABLED
|
- GOOGLE_ENABLED
|
||||||
|
- ALLOWED_DOMAINS
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
google_client_secret:
|
google_client_secret:
|
||||||
|
11
compose.yml
11
compose.yml
@ -6,7 +6,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
- proxy
|
- proxy
|
||||||
image: outlinewiki/outline:0.64.3
|
image: outlinewiki/outline:0.64.4
|
||||||
secrets:
|
secrets:
|
||||||
- aws_secret_key
|
- aws_secret_key
|
||||||
- db_password
|
- db_password
|
||||||
@ -27,6 +27,7 @@ services:
|
|||||||
- AWS_SDK_LOAD_CONFIG=0
|
- AWS_SDK_LOAD_CONFIG=0
|
||||||
- AWS_SECRET_KEY_FILE=/run/secrets/aws_secret_key
|
- AWS_SECRET_KEY_FILE=/run/secrets/aws_secret_key
|
||||||
- DATABASE_PASSWORD_FILE=/run/secrets/db_password
|
- DATABASE_PASSWORD_FILE=/run/secrets/db_password
|
||||||
|
- DATABASE_PASSWORD=pass
|
||||||
- FORCE_HTTPS=true
|
- FORCE_HTTPS=true
|
||||||
- PGSSLMODE=disable
|
- PGSSLMODE=disable
|
||||||
- REDIS_URL=redis://${STACK_NAME}_cache:6379
|
- REDIS_URL=redis://${STACK_NAME}_cache:6379
|
||||||
@ -43,7 +44,7 @@ services:
|
|||||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
||||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||||
- "coop-cloud.${STACK_NAME}.version=0.4.0+0.64.3"
|
- "coop-cloud.${STACK_NAME}.version=0.4.1+0.64.4"
|
||||||
## Redirect from EXTRA_DOMAINS to DOMAIN
|
## Redirect from EXTRA_DOMAINS to DOMAIN
|
||||||
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
||||||
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
||||||
@ -54,7 +55,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
|
||||||
db:
|
postgres:
|
||||||
image: postgres:11
|
image: postgres:11
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
@ -62,8 +63,8 @@ services:
|
|||||||
- db_password
|
- db_password
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: outline
|
POSTGRES_DB: outline
|
||||||
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
|
POSTGRES_PASSWORD: pass
|
||||||
POSTGRES_USER: outline
|
POSTGRES_USER: user
|
||||||
volumes:
|
volumes:
|
||||||
- "postgres_data:/var/lib/postgresql/data"
|
- "postgres_data:/var/lib/postgresql/data"
|
||||||
|
|
||||||
|
@ -12,7 +12,8 @@ export GOOGLE_CLIENT_SECRET=$(cat /run/secrets/google_client_secret)
|
|||||||
|
|
||||||
export UTILS_SECRET=$(cat /run/secrets/utils_secret)
|
export UTILS_SECRET=$(cat /run/secrets/utils_secret)
|
||||||
export SECRET_KEY=$(cat /run/secrets/secret_key)
|
export SECRET_KEY=$(cat /run/secrets/secret_key)
|
||||||
export DATABASE_PASSWORD=$(cat /run/secrets/db_password)
|
#export DATABASE_PASSWORD=$(cat /run/secrets/db_password)
|
||||||
export DATABASE_URL="postgres://outline:${DATABASE_PASSWORD}@${STACK_NAME}_db:5432/outline"
|
export DATABASE_URL="postgres://user:${DATABASE_PASSWORD}@${STACK_NAME}_postgres:5432/outline"
|
||||||
|
|
||||||
|
/usr/local/bin/yarn db:migrate --env=production-ssl-disabled
|
||||||
/usr/local/bin/yarn start "$@"
|
/usr/local/bin/yarn start "$@"
|
||||||
|
@ -6,7 +6,8 @@ users are enjoying using it.
|
|||||||
|
|
||||||
- Additional login methods have been added e.g. Google (yep...). You now need
|
- Additional login methods have been added e.g. Google (yep...). You now need
|
||||||
to make a choice of which authentication you want to make. This can be done by
|
to make a choice of which authentication you want to make. This can be done by
|
||||||
using the usual `$AUTH_ENABLED=1` environment variable condition.
|
using the usual `$AUTH_ENABLED=1` environment variable condition. See the
|
||||||
|
recipe `.env.sample` for more.
|
||||||
|
|
||||||
- If you were using the generic OpenID Connect authentication method (e.g.
|
- If you were using the generic OpenID Connect authentication method (e.g.
|
||||||
Keycloak, Authentik) then you will now need to use
|
Keycloak, Authentik) then you will now need to use
|
Reference in New Issue
Block a user