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:11] 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 14: Line 14:
  
 Download the latest relesase from [[https://github.com/OliveTin/OliveTin/releases|GitHub]] and decompress it under **/opt/olivetin**: Download the latest relesase from [[https://github.com/OliveTin/OliveTin/releases|GitHub]] and decompress it under **/opt/olivetin**:
-<code bash+<code bash>
 mkdir /opt/olivetin mkdir /opt/olivetin
 cd /opt/olivetin cd /opt/olivetin
Line 22: Line 22:
 rmdir OliveTin-linux-amd64 rmdir OliveTin-linux-amd64
 </code> </code>
 +
 +As for the configuration file, i think it's a good idea to keep it under **/etc/OliveTin** since we are installing the service as a normal service:
 +<code bash>
 +mkdir /etc/OliveTin
 +mv /opt/olivetin/config.yaml /etc/OliveTin
 +</code>
 +
 +
 +
 +===== Reverse Proxy =====
 +
 +Please refer to [[selfhost:nginx|this page]] for more details on NGINX as a 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>
 +location /olivetin/ {
 +        proxy_pass http://localhost:1337/;
 +        proxy_redirect http://localhost:1337/ http://localhost/olivetin/;
 +}
 +
 +location /olivetin/websocket {
 +        proxy_set_header Upgrade "websocket";
 +        proxy_set_header Connection "upgrade";
 +        proxy_pass http://localhost:1337/websocket;
 +}
 +</file>
 +
 +Of course, this assume that this is hosted under the main domain, which is already protected by the SSO (see [[selfhost:sso|here]] for more details). **Do not run OliveTin unprotected**.
 +
 +In order to let OliveTin work under a sub-path you need to add the following configuration directive to **/opt/olivetin/config.yaml**:
 +<code>
 +externalRestAddress: https://internal.mydomain.com/olivetin
 +</code>
 +
 +
 +===== Configuration =====
 +
 +
 +===== Autostart =====
 +
 +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**:
 +<file - olivetin>
 +#!/sbin/openrc-run
 +# Copyright 1999-2021 Gentoo Authors
 +# Distributed under the terms of the GNU General Public License v2
 +
 +description="OliveTin"
 +pidfile="/run/olivetin.pid"
 +command_background=true
 +command="/opt/olivetin/OliveTin"
 +command_args=""
 +output_log="/var/log/olivetin/olivetin.log"
 +output_err="/var/log/olivetin/olivetin.log"
 +
 +depend() {
 +        need net
 +}
 +
 +</file>
 +
 +and make it executable, add to the runlevel, and start it:
 +<code bash>
 +mkdir /var/log/olivetin
 +chmod +x /etc/init.d/olivetin
 +rc-update add olivetin default
 +/etc/init.d/olivetin start
 +</code>
 +
 +Yes, i prefer to keep it's log separate, so i created also a log folder for it.
 +
  
  

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