This commit is contained in:
2024-09-24 00:01:13 +02:00
parent a7e99c352f
commit 0f86fde08e
5 changed files with 16 additions and 104 deletions

View File

@@ -1,12 +1,8 @@
### Genera una pagina html con il link aggiornato di streamingcommunity
# Streaming Community Redirector
Avvia lo script manualmente <br>
<code>./update_link.sh</code><br>
Un plugin per nginx scritto in njs per dare un HTTP 301 a un dominio X.
o mettilo in cron <br>
<code>0 0 * * * /path/to/update_link.sh</code> <br>
per generare la pagina <code>index.html</code> contente il link giusto<br>
Se vuoi pubblicarla sul web, dai i permessi alla cartella contenente lo script<br>
<code>sudo chown -R www-data:www-data /path/to/streamingcommunity_directory ; sudo chmod -R 755 /path/to/streamingcommunity_directory</code><br>
1. Install njs
2. Copia main.js dove vuoi
3. Aggiungi main.js dentro il tuo nginx
4. Metti crontab per generare automaticamente il file con l'ultimo indirizzo di steraming community