fix: adapt oauth updates to self hosting

This commit is contained in:
swve 2024-06-10 14:37:40 +01:00
parent 8901cc589e
commit cd524d6912
2 changed files with 16 additions and 2 deletions

View file

@ -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

View file

@ -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;