Created
May 18, 2021 17:57
-
-
Save serverok/3ceb67d69b3cc8e9790bfa35ccab8b89 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
edit files | |
nano /etc/nginx/sites-enabled/stream.conf | |
Add | |
server { | |
listen 9000 ssl; | |
server_name radiotvstream.com; | |
root /usr/share/nginx/html; | |
ssl_certificate /usr/local/centovacast/etc/ssl/certificates/radiotvstream.com.pem; | |
ssl_certificate_key /usr/local/centovacast/etc/ssl/certificates/radiotvstream.com.key; | |
proxy_read_timeout 600s; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
proxy_set_header Host $host; | |
proxy_pass http://51.161.131.2:8000; | |
} | |
} | |
Change port 9000 to a diff port, if you need to use another stream. | |
Restart nginx | |
systemctl restart nginx | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment