feature(auth): replace clerk.com with custom auth (#103)

* feature(auth): replace clerk.com with custom auth

* minor fixes

* remove notification preferences

* decrease live events interval

fix(api): cookies..

# Conflicts:
#	.gitignore
#	apps/api/src/index.ts
#	apps/dashboard/src/app/providers.tsx
#	packages/trpc/src/trpc.ts
This commit is contained in:
Carl-Gerhard Lindesvärd
2024-12-18 21:30:39 +01:00
committed by Carl-Gerhard Lindesvärd
parent f28802b1c2
commit d31d9924a5
151 changed files with 18484 additions and 12853 deletions

View File

@@ -5,7 +5,7 @@ services:
image: postgres:14-alpine
restart: always
volumes:
- ./tmp/op-db-data:/var/lib/postgresql/data
- ./docker/data/op-db-data:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
@@ -16,8 +16,8 @@ services:
image: redis:7.2.5-alpine
restart: always
volumes:
- ./tmp/op-kv-data:/data
command: ['redis-server', '--maxmemory-policy', 'noeviction']
- ./docker/data/op-kv-data:/data
command: [ 'redis-server', '--maxmemory-policy', 'noeviction' ]
ports:
- 6379:6379
@@ -31,14 +31,30 @@ services:
image: clickhouse/clickhouse-server:24.3.2-alpine
restart: always
volumes:
- ./tmp/op-ch-data:/var/lib/clickhouse
- ./tmp/op-ch-logs:/var/log/clickhouse-server
- ./clickhouse/clickhouse-config.xml:/etc/clickhouse-server/config.d/op-config.xml:ro
- ./clickhouse/clickhouse-user-config.xml:/etc/clickhouse-server/users.d/op-user-config.xml:ro
- ./docker/data/op-ch-data:/var/lib/clickhouse
- ./docker/data/op-ch-logs:/var/log/clickhouse-server
- ./self-hosting/clickhouse/clickhouse-config.xml:/etc/clickhouse-server/config.d/op-config.xml
- ./self-hosting/clickhouse/clickhouse-user-config.xml:/etc/clickhouse-server/users.d/op-user-config.xml
ulimits:
nofile:
soft: 262144
hard: 262144
ports:
- 9000:9000
- 8123:8123
- "8123:8123" # HTTP interface
- "9000:9000" # Native/TCP interface
- "9009:9009" # Inter-server communication
op-zk:
image: clickhouse/clickhouse-server:24.3.2-alpine
volumes:
- ./docker/data/op-zk-data:/var/lib/clickhouse
- ./self-hosting/clickhouse/clickhouse-keeper-config.xml:/etc/clickhouse-server/config.xml
command: [ 'clickhouse-keeper', '--config-file', '/etc/clickhouse-server/config.xml' ]
restart: always
ulimits:
nofile:
soft: 262144
hard: 262144
ports:
- "9181:9181" # Keeper port
- "9234:9234" # Keeper Raft port