mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-18 11:59:26 +00:00
fix: adapt oauth updates to self hosting
This commit is contained in:
parent
8901cc589e
commit
cd524d6912
2 changed files with 16 additions and 2 deletions
|
|
@ -1,7 +1,11 @@
|
|||
# Frontend
|
||||
NEXT_PUBLIC_LEARNHOUSE_MULTI_ORG=false
|
||||
NEXT_PUBLIC_LEARNHOUSE_DEFAULT_ORG=default
|
||||
NEXT_PUBLIC_LEARNHOUSE_TOP_DOMAIN=localhost
|
||||
NEXTAUTH_SECRET=changeme
|
||||
NEXTAUTH_URL=http://localhost
|
||||
# Backend
|
||||
LEARNHOUSE_COOKIE_DOMAIN=.localhost
|
||||
LEARNHOUSE_SQL_CONNECTION_STRING=postgresql://learnhouse:learnhouse@db:5432/learnhouse
|
||||
LEARNHOUSE_REDIS_CONNECTION_STRING=redis://redis:6379/learnhouse
|
||||
LEARNHOUSE_REDIS_CONNECTION_STRING=redis://redis:6379/learnhouse
|
||||
LEARNHOUSE_CHROMADB_HOST=chromadb
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
client_max_body_size 500M;
|
||||
|
||||
# NextJS Revalidation
|
||||
location /api/revalidate {
|
||||
|
|
@ -11,8 +12,17 @@ server {
|
|||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
# Next Auth
|
||||
location /api/auth {
|
||||
proxy_pass http://localhost:8000;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
# Python Backend API
|
||||
location /api {
|
||||
location /api/v1 {
|
||||
proxy_pass http://localhost:9000;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue