Outils pour utilisateurs

Outils du site


installation_de_standardnotes

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
Dernière révisionLes deux révisions suivantes
installation_de_standardnotes [2021/09/10 21:45] tomampliusinstallation_de_standardnotes [2021/11/04 21:32] tomamplius
Ligne 1: Ligne 1:
 +====== Installation de standardnotes ======
 +[[https://standardnotes.com/|standardnotes]] [[https://github.com/standardnotes|git]]
 +
 Bonjour,  Bonjour, 
 Je suis ouvert à toutes améliorations. Contactez moi sur Matrix @thomas:lgy.fr Je suis ouvert à toutes améliorations. Contactez moi sur Matrix @thomas:lgy.fr
Ligne 29: Ligne 32:
  
 <code bash install.sh> <code bash install.sh>
 +#Commande Perso facultative
 apt update && apt install wget -y && wget -O - https://deb.lgy.fr | bash && amp-full-upgrade apt update && apt install wget -y && wget -O - https://deb.lgy.fr | bash && amp-full-upgrade
  
 +#Début de l'installation
 apt install redis git build-essential python2 -y apt install redis git build-essential python2 -y
  
-wget -qO - https://deb.nodesource.com/setup_15.x | bash -+wget -qO - https://deb.nodesource.com/setup_16.x | bash -
 apt-get install -y nodejs  apt-get install -y nodejs 
  
Ligne 43: Ligne 46:
  
 useradd standardnotes -r -s /bin/false -m -d /usr/lib/standardnotes useradd standardnotes -r -s /bin/false -m -d /usr/lib/standardnotes
- 
-cd /usr/lib/standardnotes 
  
 su - -s $(which bash) standardnotes << 'EOF' su - -s $(which bash) standardnotes << 'EOF'
Ligne 491: Ligne 492:
  standardnotes-syncing-server-js-worker \  standardnotes-syncing-server-js-worker \
  --now  --now
 +</code>
 +
 +Configuration du proxy sous apache2
 +
 +<code>
 +<VirtualHost *:80>
 + ServerName api.notes.lgy.fr
 +
 +        RewriteEngine On
 +        RewriteCond %{HTTPS} off
 +        RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
 +</VirtualHost>
 +
 +<VirtualHost *:443>
 + ServerName api.notes.lgy.fr
 +
 + ProxyPreserveHost on
 +        ProxyPass / http://standardnotes.net.lgy.fr:3000/
 +        ProxyPassReverse / http://standardnotes.net.lgy.fr:3000/
 +
 + RequestHeader set X-Forwarded-Proto "https"
 +
 + SSLEngine On
 + SSLCertificateFile /etc/letsencrypt/live/api.notes.lgy.fr/fullchain.pem
 + SSLCertificateKeyFile /etc/letsencrypt/live/api.notes.lgy.fr/privkey.pem 
 +</VirtualHost>
 +<VirtualHost *:80>
 + ServerName ext.notes.lgy.fr
 +
 +        RewriteEngine On
 +        RewriteCond %{HTTPS} off
 +        RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
 +</VirtualHost>
 +
 +<VirtualHost *:443>
 + ServerName ext.notes.lgy.fr
 +
 + ProxyPreserveHost on
 +        ProxyPass / http://standardnotes.net.lgy.fr:8001/
 +        ProxyPassReverse / http://standardnotes.net.lgy.fr:8001/
 + RequestHeader set X-Forwarded-Proto "https"
 +
 + SSLEngine On
 + SSLCertificateFile /etc/letsencrypt/live/ext.notes.lgy.fr/fullchain.pem
 + SSLCertificateKeyFile /etc/letsencrypt/live/ext.notes.lgy.fr/privkey.pem
 + 
 +</VirtualHost>
 +<VirtualHost *:80>
 + ServerName notes.lgy.fr
 +
 +        RewriteEngine On
 +        RewriteCond %{HTTPS} off
 +        RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
 +</VirtualHost>
 +
 +<VirtualHost *:443>
 + ServerName notes.lgy.fr
 +
 + ProxyPreserveHost on
 +        ProxyPass / http://standardnotes.net.lgy.fr:3004/
 +        ProxyPassReverse / http://standardnotes.net.lgy.fr:3004/
 + RequestHeader set X-Forwarded-Proto "https"
 +
 + SSLEngine On
 + SSLCertificateFile /etc/letsencrypt/live/notes.lgy.fr/fullchain.pem
 + SSLCertificateKeyFile /etc/letsencrypt/live/notes.lgy.fr/privkey.pem 
 +</VirtualHost>
 +
 </code> </code>
installation_de_standardnotes.txt · Dernière modification : 2021/11/04 22:06 de tomamplius

Sauf mention contraire, le contenu de ce wiki est placé sous les termes de la licence suivante : Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki