User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
services:silverbullet [2024/08/07 15:04] willyservices:silverbullet [2024/09/05 12:56] (current) – [Startup] willy
Line 1: Line 1:
 ====== Silverbullet ====== ====== Silverbullet ======
  
-[[https://silverbullet.md/:Silverbullet]] is an amazing and powerfull note taking app. It's actually incredibly more than that.+[[https://silverbullet.md/|Silverbullet]] is an amazing and powerfull note taking app. It's actually incredibly more than that.
  
 ===== Installation ===== ===== Installation =====
Line 8: Line 8:
 <code bash> <code bash>
 useradd -d /data/daemons/silverbullet -m silverbullet -g users useradd -d /data/daemons/silverbullet -m silverbullet -g users
-</bash>+</code>
  
 Note that i am adding it to the **users** group because i want to share the notes (which are plain md files) via Syncthing later on. Note that i am adding it to the **users** group because i want to share the notes (which are plain md files) via Syncthing later on.
Line 17: Line 17:
 </code> </code>
  
-Now, just download the latest release from  [[https://github.com/silverbulletmd/silverbullet/releases:Github releases page]] and unzip it:+Now, just download the latest release from  [[https://github.com/silverbulletmd/silverbullet/releases|Github releases page]] and unzip it:
 <code bash> <code bash>
 su - silverbullet su - silverbullet
Line 32: Line 32:
 Here is the NGINX configuration file: Here is the NGINX configuration file:
 <file - silverbullet.conf> <file - silverbullet.conf>
-# Manage tunnels request from external server + 
-# casa.gardiol.org is the main domain +access_log /var/log/nginx/notes.mydomain.com_access_log main;                                                                                                                                  
-# old.gardiol.org is the "backup" domain +error_log /var/log/nginx/notes.mydomain.com_error_log info;                                                                                                                                    
-HTTPS listen on a custom port (8443) because this is authenticated+ 
 +login protected access from outside
 server { server {
         server_name notes.mydomain.com;         server_name notes.mydomain.com;
         listen 8443 ssl;          listen 8443 ssl; 
-        auth_pam "Home"+        http2 on
-        auth_pam_service_name "nginx"; +        include "com.mydomain/authelia_location.conf"; 
-        access_log /var/log/nginx/notes.mydomain.com_access_log main+         
-        error_log /var/log/nginx/notes.mydomain.com_error_log info+        location {                                                                                                                                                                                  
-        location / +             include "com.mydomain/authelia_proxy.conf"                                                                                                                                           
-                client_max_body_size 512M; +             include "com.mydomain/authelia_authrequest.conf"                                                                                                                                                                                                                                                                                 
-                proxy_pass http://127.0.0.1:8001$uri;+             if ($http_origin = '')                                                                                                                                                              
 +                 set $http_origin "*"; 
 +             } 
 +             proxy_hide_header Access-Control-Allow-Origin;   
 +             add_header Access-Control-Allow-Origin $http_origin; 
 + 
 +             client_max_body_size 512M; 
 +             proxy_pass http://127.0.0.1:8001$uri;
         }         }
-        include certbot.conf; 
 } }
  
Line 54: Line 61:
 # HTTPS on port 443 for direct local connections # HTTPS on port 443 for direct local connections
 server { server {
-        server_name notes.gardiol.org;+        server_name notes.mydomain.com;
         listen 443 ssl;          listen 443 ssl; 
-        access_log /var/log/nginx/notes.mydomain.com_access_log main+        http2 on
-        error_log /var/log/nginx/notes.mydomain.com_error_log info; +         
-        location / { +        location / {                                                                                                                                                                  
-                client_max_body_size 512M; +             if ($http_origin = ''){                                                                                                                                                               
-                proxy_pass http://127.0.0.1:8001$uri; +                 set $http_origin "*"; 
-        } +             } 
-        include certbot.conf; +             proxy_hide_header Access-Control-Allow-Origin; 
-}+             add_header Access-Control-Allow-Origin $http_origin; 
 +             client_max_body_size 512M; 
 +             proxy_pass http://127.0.0.1:8001$uri; 
 +     
 +                                                                                                                                                                   
 </file> </file>
  
Line 79: Line 90:
 pidfile="/run/silverbullet.pid" pidfile="/run/silverbullet.pid"
 command_background=true command_background=true
-command="/deposito/daemons/silverbullet/silverbullet"+command="/data/daemons/silverbullet/silverbullet"
 command_args="/home/notes/ --hostname 127.0.0.1 --port 8001" command_args="/home/notes/ --hostname 127.0.0.1 --port 8001"
 command_user="silverbullet:users" command_user="silverbullet:users"

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information