installation_de_standardnotes
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
installation_de_standardnotes [2021/09/10 21:45] – tomamplius | installation_de_standardnotes [2021/11/04 22:06] (Version actuelle) – tomamplius | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ====== Installation de standardnotes ====== | ||
+ | [[https:// | ||
+ | |||
Bonjour, | Bonjour, | ||
Je suis ouvert à toutes améliorations. Contactez moi sur Matrix @thomas: | Je suis ouvert à toutes améliorations. Contactez moi sur Matrix @thomas: | ||
Ligne 29: | Ligne 32: | ||
<code bash install.sh> | <code bash install.sh> | ||
+ | #Commande Perso facultative | ||
apt update && apt install wget -y && wget -O - https:// | apt update && apt install wget -y && wget -O - https:// | ||
+ | #Début de l' | ||
apt install redis git build-essential python2 -y | apt install redis git build-essential python2 -y | ||
- | wget -qO - https:// | + | wget -qO - https:// |
apt-get install -y nodejs | apt-get install -y nodejs | ||
Ligne 43: | Ligne 46: | ||
useradd standardnotes -r -s /bin/false -m -d / | useradd standardnotes -r -s /bin/false -m -d / | ||
- | |||
- | cd / | ||
su - -s $(which bash) standardnotes << ' | su - -s $(which bash) standardnotes << ' | ||
Ligne 107: | Ligne 108: | ||
cat << ' | cat << ' | ||
- | const { merge } = require(' | + | onst { merge } = require(' |
const config = require(' | const config = require(' | ||
const HtmlWebpackPlugin = require(' | const HtmlWebpackPlugin = require(' | ||
+ | const mergeWithEnvDefaults = require(' | ||
module.exports = (env, argv) => { | module.exports = (env, argv) => { | ||
const port = argv.port || 3004; | const port = argv.port || 3004; | ||
+ | mergeWithEnvDefaults(env); | ||
return merge(config(env, | return merge(config(env, | ||
mode: ' | mode: ' | ||
- | | + | |
- | plugins: | + | minimize: false, |
+ | }, | ||
+ | plugins: [ | ||
new HtmlWebpackPlugin({ | new HtmlWebpackPlugin({ | ||
template: ' | template: ' | ||
+ | inject: true, | ||
templateParameters: | templateParameters: | ||
- | env: process.env | + | env: process.env, |
}, | }, | ||
}), | }), | ||
- | | + | ], |
devServer: { | devServer: { | ||
- | | + | allowedHosts: [' |
- | | + | host: ' |
- | | + | |
- | | + | |
- | target: `http:// | + | port, |
- | | + | |
- | }, | + | |
- | '/ | + | |
- | target: `http:// | + | |
- | | + | |
- | | + | |
}, | }, | ||
- | port, | + | }, |
- | writeToDisk: | + | |
- | } | + | |
}); | }); | ||
}; | }; | ||
Ligne 491: | Ligne 491: | ||
standardnotes-syncing-server-js-worker \ | standardnotes-syncing-server-js-worker \ | ||
--now | --now | ||
+ | </ | ||
+ | |||
+ | Configuration du proxy sous apache2 | ||
+ | |||
+ | < | ||
+ | < | ||
+ | ServerName api.notes.lgy.fr | ||
+ | |||
+ | RewriteEngine On | ||
+ | RewriteCond %{HTTPS} off | ||
+ | RewriteRule (.*) https:// | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | ServerName api.notes.lgy.fr | ||
+ | |||
+ | ProxyPreserveHost on | ||
+ | ProxyPass / http:// | ||
+ | ProxyPassReverse / http:// | ||
+ | |||
+ | RequestHeader set X-Forwarded-Proto " | ||
+ | |||
+ | SSLEngine On | ||
+ | SSLCertificateFile / | ||
+ | SSLCertificateKeyFile / | ||
+ | </ | ||
+ | < | ||
+ | ServerName ext.notes.lgy.fr | ||
+ | |||
+ | RewriteEngine On | ||
+ | RewriteCond %{HTTPS} off | ||
+ | RewriteRule (.*) https:// | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | ServerName ext.notes.lgy.fr | ||
+ | |||
+ | ProxyPreserveHost on | ||
+ | ProxyPass / http:// | ||
+ | ProxyPassReverse / http:// | ||
+ | RequestHeader set X-Forwarded-Proto " | ||
+ | |||
+ | SSLEngine On | ||
+ | SSLCertificateFile / | ||
+ | SSLCertificateKeyFile / | ||
+ | |||
+ | </ | ||
+ | < | ||
+ | ServerName notes.lgy.fr | ||
+ | |||
+ | RewriteEngine On | ||
+ | RewriteCond %{HTTPS} off | ||
+ | RewriteRule (.*) https:// | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | ServerName notes.lgy.fr | ||
+ | |||
+ | ProxyPreserveHost on | ||
+ | ProxyPass / http:// | ||
+ | ProxyPassReverse / http:// | ||
+ | RequestHeader set X-Forwarded-Proto " | ||
+ | |||
+ | SSLEngine On | ||
+ | SSLCertificateFile / | ||
+ | SSLCertificateKeyFile / | ||
+ | </ | ||
+ | |||
</ | </ |
installation_de_standardnotes.1631303124.txt.gz · Dernière modification : 2021/09/10 21:45 de tomamplius