forked from scossa/StreamingCommunity
Updates
This commit is contained in:
16
README.md
16
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user