mirror of https://github.com/djteang/OrangeTV.git
27 lines
680 B
Nginx Configuration File
27 lines
680 B
Nginx Configuration File
server {
|
|
listen 443 ssl;
|
|
server_name domain.com;
|
|
charset utf-8;
|
|
|
|
ssl_certificate /home/cert/tvcertificate.crt;
|
|
ssl_certificate_key /home/cert/tvprivate.pem;
|
|
|
|
location / {
|
|
proxy_pass http://ip:3000;
|
|
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;
|
|
proxy_set_header X-Forwarded-Server $host;
|
|
}
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name domain.com;
|
|
|
|
return 301 https://domain.com$request_uri;
|
|
}
|