mirror of https://github.com/djteang/OrangeTV.git
28 lines
716 B
Plaintext
28 lines
716 B
Plaintext
# Nginx production reverse proxy example.
|
|
|
|
upstream orangetv_app {
|
|
server localhost:3000;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name your-domain.com;
|
|
|
|
# If using HTTPS, uncomment and configure certificates.
|
|
# listen 443 ssl;
|
|
# ssl_certificate /path/to/ssl/cert.pem;
|
|
# ssl_certificate_key /path/to/ssl/key.pem;
|
|
|
|
client_max_body_size 100M;
|
|
|
|
location / {
|
|
proxy_pass http://orangetv_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_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
}
|
|
}
|