feat: Add local network configuration (no SSL)

- Add nginx.local.conf for HTTP-only access via local IP
- Add docker-compose.local.yml for local network deployment
- Simpler setup without SSL certificate requirements

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-28 02:16:02 +00:00
parent 85bda6abcf
commit a683baaca4
2 changed files with 252 additions and 0 deletions

93
nginx/nginx.local.conf Normal file
View File

@@ -0,0 +1,93 @@
# ===========================================
# NGINX Configuration - Local Network Access
# Sin SSL, acceso directo por IP local
# ===========================================
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - [$time_local] "$request" $status $body_bytes_sent';
access_log /var/log/nginx/access.log main;
sendfile on;
keepalive_timeout 65;
# Gzip
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml;
# Upstreams
upstream app {
server app:8000;
keepalive 32;
}
upstream flower {
server flower:5555;
}
# HTTP Server (sin SSL)
server {
listen 80;
server_name _;
client_max_body_size 10M;
# Static files
location /static {
alias /usr/share/nginx/html/static;
expires 7d;
}
# API
location /api {
proxy_pass http://app;
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_connect_timeout 30s;
proxy_read_timeout 60s;
}
# Dashboard
location /dashboard {
proxy_pass http://app;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
# Flower (Celery monitor)
location /flower/ {
proxy_pass http://flower/;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
# Health check
location /health {
proxy_pass http://app/api/health;
}
# Root
location / {
proxy_pass http://app;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
}