Skip to content

Instantly share code, notes, and snippets.

@PIE-yt
PIE-yt / metube.service
Created March 12, 2022 18:57
MeTube systemd service
#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
@PIE-yt
PIE-yt / MeTube Apache.conf
Last active March 12, 2022 18:54
MeTube Apache reverse proxy configuration.
#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]