mirror of
https://github.com/booklore-app/booklore.git
synced 2025-12-23 22:28:11 -05:00
Kobo Phase 1: Enable Book Transfer/Sync
This commit is contained in:
committed by
Aditya Chandel
parent
a092d629c9
commit
6e6861b329
10
nginx.conf
10
nginx.conf
@@ -9,7 +9,7 @@ http {
|
||||
client_max_body_size 1000M;
|
||||
|
||||
server {
|
||||
listen 6060; # Listen on port 6060 for both API and UI
|
||||
listen ${BOOKLORE_PORT};
|
||||
|
||||
# Set the root directory for the server (Angular app)
|
||||
root /usr/share/nginx/html;
|
||||
@@ -33,11 +33,9 @@ http {
|
||||
|
||||
# Proxy API requests that start with /api/ to the backend
|
||||
location /api/ {
|
||||
proxy_pass http://localhost:8080; # Backend API running on port 8080
|
||||
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_pass http://localhost:8080;
|
||||
proxy_set_header X-Forwarded-Port $server_port;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
}
|
||||
|
||||
# Proxy WebSocket requests (ws://) to the backend
|
||||
|
||||
Reference in New Issue
Block a user