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
#Assumes Node.js 16 lts and python 3.8 installed via pyenv, but you should be able to modify the paths for your installation. | |
[Unit] | |
Description=MeTube | |
After=multi-user.target | |
After=network-online.target | |
Wants=network-online.target | |
[Service] | |
WorkingDirectory=/home/metube/metube | |
ExecStart=/home/metube/.local/share/virtualenvs/metube-DyD1lcVj/bin/python3 app/main.py |
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
#For putting in your Apache sites site.conf | |
#Serves MeTube under a /metube/ subdir (http://yourdomain.com/metube/) | |
<Location /metube/> | |
ProxyPass http://localhost:8081/ retry=0 timeout=30 | |
ProxyPassReverse http://localhost:8081/ | |
</Location> | |
<Location /metube/socket.io> | |
RewriteEngine On | |
RewriteCond %{QUERY_STRING} transport=websocket [NC] |