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:06] willyservices:silverbullet [2024/09/05 12:56] (current) – [Startup] willy
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