53 lines
1.6 KiB
Nginx Configuration File
53 lines
1.6 KiB
Nginx Configuration File
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name baserow.bolbol.tn;
|
|
|
|
# --- Endpoints OAuth statiques (decouverte) ---
|
|
location = /.well-known/oauth-authorization-server {
|
|
default_type application/json;
|
|
alias /etc/nginx/well-known/oauth-authorization-server.json;
|
|
}
|
|
|
|
location ~ ^/\.well-known/oauth-protected-resource(/.*)?$ {
|
|
default_type application/json;
|
|
alias /etc/nginx/well-known/oauth-protected-resource.json;
|
|
}
|
|
|
|
# --- Endpoints OAuth dynamiques (register/authorize/token) ---
|
|
location = /register {
|
|
proxy_pass http://oauth-app:8080/register;
|
|
proxy_set_header Host $host;
|
|
}
|
|
|
|
location = /authorize {
|
|
proxy_pass http://oauth-app:8080/authorize;
|
|
proxy_set_header Host $host;
|
|
}
|
|
|
|
location = /token {
|
|
proxy_pass http://oauth-app:8080/token;
|
|
proxy_set_header Host $host;
|
|
}
|
|
|
|
# --- Tout le reste : Baserow inchange (app web, API, websocket, MCP SSE) ---
|
|
location / {
|
|
proxy_pass http://baserow:80;
|
|
proxy_http_version 1.1;
|
|
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;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
proxy_buffering off;
|
|
proxy_read_timeout 3600s;
|
|
proxy_send_timeout 3600s;
|
|
chunked_transfer_encoding on;
|
|
}
|
|
}
|