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:olivetin [2025/05/06 06:37] – [Installation] willyservices:olivetin [2025/05/06 07:44] (current) – [OliveTin on subdomain] willy
Line 1: Line 1:
 ====== Olivetin ====== ====== Olivetin ======
  
-[[https://www.olivetin.app/|OliveTin]] is...+[[https://www.olivetin.app/|OliveTin]] is a neat web interface that can run your shell scripts and present outputIt can also monitor all your containers and servers and so much moreIt can also be intergated into Home Assistant!
  
  
Line 35: Line 35:
 Please refer to [[selfhost:nginx|this page]] for more details on NGINX as a reverse proxy. Please refer to [[selfhost:nginx|this page]] for more details on NGINX as a reverse proxy.
  
-OliveTin can be used on a subpath. While it is //not recomended// i think it's a better approach to use a dedicated DNS CNAME for it mostly because i will be using it only masked under my main server address (internal.mydomain.com) and well protected behind the reverse proxy.+==== OliveTin on subdomain ====
  
 +This will enable your SSO login protection (see [[selfhost:sso|here]] for more details). Do not use this without SSO!
 +
 +<file - olivetin.conf>
 +server {
 +        server_name olivetin.mydomain.com;
 +        listen 8443 ssl;
 +        listen 443 ssl;
 +
 +        access_log /var/log/nginx/olivetin.mydomain.com_access_log main;
 +        error_log /var/log/nginx/olivetin.mydomain.com_error_log info;
 +        
 +        include "com.mydomain/authelia_location.conf";
 +
 +        location / {
 +                include "com.mydomain/authelia_proxy.conf";
 +                include "com.mydomain/authelia_authrequest.conf";
 +        
 +                proxy_pass http://localhost:1337/;
 +                proxy_redirect http://localhost:1337/ http://localhost/OliveTin/;
 +        }
 +                
 +        location /websocket {
 +                include "com.mydomain/authelia_proxy.conf";
 +                include "com.mydomain/authelia_authrequest.conf";
 +
 +                proxy_set_header Upgrade "websocket";
 +                proxy_set_header Connection "upgrade";
 +                proxy_pass http://localhost:1337/websocket;
 +        }
 +        
 +        include com.mydomain/certbot.conf;
 +}
 +</file>
 +
 +==== OliveTin on subpath ====
 +
 +OliveTin can be used on a subpath. While it is //not recomended//, and i didnt manage (yet) to get it running, here is what the documentation suggest:
 <file - olivetin.conf> <file - olivetin.conf>
 location /olivetin/ { location /olivetin/ {
Line 63: Line 100:
 ===== Autostart ===== ===== Autostart =====
  
-OliveTin provides a SystemD service file. If you, like me, prefeer to use OpenRC, it'pretty easy to setup a proper initialization script.+OliveTin provides both a SystemD service file and an OpenRC init script. If you, like me, prefeer to use OpenRC, keep in mind that the provided one has some limits like no stdout/err redirect and the binary path should be changed to /opt/olivetin. So i rolled my own, which is pretty easy, and almost identical.
  
 Drop the following to **/etc/init.d/olivetin**: Drop the following to **/etc/init.d/olivetin**:
Line 75: Line 112:
 command_background=true command_background=true
 command="/opt/olivetin/OliveTin" command="/opt/olivetin/OliveTin"
-command_args="-configdir /opt/olivetin"+command_args=""
 output_log="/var/log/olivetin/olivetin.log" output_log="/var/log/olivetin/olivetin.log"
 output_err="/var/log/olivetin/olivetin.log" output_err="/var/log/olivetin/olivetin.log"

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