- Updated Docker configuration for production deployment - Added SilverPay integration settings - Configured for admin.thebankofdebbie.giize.com deployment - Includes all recent security fixes and improvements 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
65 lines
2.1 KiB
Plaintext
65 lines
2.1 KiB
Plaintext
# Nginx configuration for LittleShop (optional)
|
|
# Place this file in /etc/nginx/sites-available/ and create a symlink to sites-enabled/
|
|
# This configuration proxies requests from external interface to localhost-only service
|
|
|
|
server {
|
|
listen 80;
|
|
server_name srv1002428.hstgr.cloud;
|
|
|
|
# Security headers
|
|
add_header X-Frame-Options "SAMEORIGIN" always;
|
|
add_header X-Content-Type-Options "nosniff" always;
|
|
add_header X-XSS-Protection "1; mode=block" always;
|
|
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
|
|
|
|
# Increase max body size for file uploads
|
|
client_max_body_size 50M;
|
|
|
|
location / {
|
|
proxy_pass http://127.0.0.1:5000;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection keep-alive;
|
|
proxy_set_header Host $host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
# Timeouts for long-running requests
|
|
proxy_connect_timeout 600;
|
|
proxy_send_timeout 600;
|
|
proxy_read_timeout 600;
|
|
send_timeout 600;
|
|
}
|
|
|
|
# Static files (if needed)
|
|
location /uploads {
|
|
alias /opt/littleshop/uploads;
|
|
expires 30d;
|
|
add_header Cache-Control "public, immutable";
|
|
}
|
|
|
|
location /wwwroot {
|
|
alias /opt/littleshop/wwwroot;
|
|
expires 30d;
|
|
add_header Cache-Control "public, immutable";
|
|
}
|
|
|
|
# Health check endpoint (direct access for monitoring)
|
|
location /health {
|
|
proxy_pass http://127.0.0.1:5000/api/health;
|
|
access_log off;
|
|
}
|
|
}
|
|
|
|
# SSL configuration (to be added after Let's Encrypt setup)
|
|
# server {
|
|
# listen 443 ssl http2;
|
|
# server_name srv1002428.hstgr.cloud;
|
|
#
|
|
# ssl_certificate /etc/letsencrypt/live/srv1002428.hstgr.cloud/fullchain.pem;
|
|
# ssl_certificate_key /etc/letsencrypt/live/srv1002428.hstgr.cloud/privkey.pem;
|
|
#
|
|
# # ... rest of configuration same as above ...
|
|
# } |