mirror of
				https://gitlab.crans.org/nounous/ghostream.git
				synced 2025-11-04 06:32:10 +01:00 
			
		
		
		
	Systemd unit file
This commit is contained in:
		
							
								
								
									
										15
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								README.md
									
									
									
									
									
								
							@@ -75,9 +75,14 @@ Now enable and start OvenMediaEngine, `sudo systemctl enable --now ovenmediaengi
 | 
				
			|||||||
It's WIP.
 | 
					It's WIP.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
sudo apt install python3-ldap python3-flask
 | 
					sudo apt install python3-ldap python3-flask uwsgi-plugin-python3
 | 
				
			||||||
python3 -m venv venv --system-site-packages
 | 
					git clone https://gitlab.crans.org/nounous/ghostream && cd ghostream
 | 
				
			||||||
source venv/bin/activate
 | 
					```
 | 
				
			||||||
pip install -e .
 | 
					
 | 
				
			||||||
FLASK_APP=/home/erdnaxe/ghostreamer/ghostream flask run
 | 
					Copy [ghostreamer.service](doc/ghostreamer.service) to `/etc/systemd/system/ghostreamer.service`
 | 
				
			||||||
 | 
					and customize.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					sudo systemctl daemon-reload
 | 
				
			||||||
 | 
					sudo systemctl enable --now ghostreamer
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										17
									
								
								doc/ghostreamer.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								doc/ghostreamer.service
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
				
			|||||||
 | 
					[Unit]
 | 
				
			||||||
 | 
					Description=Simple streaming server
 | 
				
			||||||
 | 
					After=network.target
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Service]
 | 
				
			||||||
 | 
					User=www-data
 | 
				
			||||||
 | 
					WorkingDirectory=/var/local/ghostream
 | 
				
			||||||
 | 
					Environment=FLASK_CONFIG=production
 | 
				
			||||||
 | 
					Environment=LDAP_URI=ldap://127.0.0.1:389
 | 
				
			||||||
 | 
					Environment=LDAP_USER_DN=cn=Utilisateurs,dc=crans,dc=org
 | 
				
			||||||
 | 
					Environment=SITE_NAME=Crans Stream
 | 
				
			||||||
 | 
					Environment=FAVICON=https://www.crans.org/images/favicon.ico
 | 
				
			||||||
 | 
					ExecStart=uwsgi --http-socket 127.0.0.1:8080 --master --plugin python3 --module ghostream:app --static-map /static=/var/local/ghostream/ghostream/static
 | 
				
			||||||
 | 
					Restart=always
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Install]
 | 
				
			||||||
 | 
					WantedBy=multi-user.target
 | 
				
			||||||
		Reference in New Issue
	
	Block a user