Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
services:olivetin [2025/05/06 06:11] – willy | services:olivetin [2025/05/06 07:44] (current) – [OliveTin on subdomain] willy | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Olivetin ====== | ====== Olivetin ====== | ||
- | [[https:// | + | [[https:// |
Line 14: | Line 14: | ||
Download the latest relesase from [[https:// | Download the latest relesase from [[https:// | ||
- | <code bash | + | <code bash> |
mkdir / | mkdir / | ||
cd / | cd / | ||
Line 22: | Line 22: | ||
rmdir OliveTin-linux-amd64 | rmdir OliveTin-linux-amd64 | ||
</ | </ | ||
+ | |||
+ | As for the configuration file, i think it's a good idea to keep it under **/ | ||
+ | <code bash> | ||
+ | mkdir / | ||
+ | mv / | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ===== Reverse Proxy ===== | ||
+ | |||
+ | Please refer to [[selfhost: | ||
+ | |||
+ | ==== OliveTin on subdomain ==== | ||
+ | |||
+ | This will enable your SSO login protection (see [[selfhost: | ||
+ | |||
+ | <file - olivetin.conf> | ||
+ | server { | ||
+ | server_name olivetin.mydomain.com; | ||
+ | listen 8443 ssl; | ||
+ | listen 443 ssl; | ||
+ | |||
+ | access_log / | ||
+ | error_log / | ||
+ | | ||
+ | include " | ||
+ | |||
+ | location / { | ||
+ | include " | ||
+ | include " | ||
+ | | ||
+ | proxy_pass http:// | ||
+ | proxy_redirect http:// | ||
+ | } | ||
+ | | ||
+ | location /websocket { | ||
+ | include " | ||
+ | include " | ||
+ | |||
+ | proxy_set_header Upgrade " | ||
+ | proxy_set_header Connection " | ||
+ | proxy_pass http:// | ||
+ | } | ||
+ | | ||
+ | include com.mydomain/ | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ==== OliveTin on subpath ==== | ||
+ | |||
+ | OliveTin can be used on a subpath. While it is //not recomended//, | ||
+ | <file - olivetin.conf> | ||
+ | location /olivetin/ { | ||
+ | proxy_pass http:// | ||
+ | proxy_redirect http:// | ||
+ | } | ||
+ | |||
+ | location / | ||
+ | proxy_set_header Upgrade " | ||
+ | proxy_set_header Connection " | ||
+ | proxy_pass http:// | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Of course, this assume that this is hosted under the main domain, which is already protected by the SSO (see [[selfhost: | ||
+ | |||
+ | In order to let OliveTin work under a sub-path you need to add the following configuration directive to **/ | ||
+ | < | ||
+ | externalRestAddress: | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== 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 / | ||
+ | |||
+ | Drop the following to **/ | ||
+ | <file - olivetin> | ||
+ | # | ||
+ | # Copyright 1999-2021 Gentoo Authors | ||
+ | # Distributed under the terms of the GNU General Public License v2 | ||
+ | |||
+ | description=" | ||
+ | pidfile="/ | ||
+ | command_background=true | ||
+ | command="/ | ||
+ | command_args="" | ||
+ | output_log="/ | ||
+ | output_err="/ | ||
+ | |||
+ | depend() { | ||
+ | need net | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | |||
+ | and make it executable, add to the runlevel, and start it: | ||
+ | <code bash> | ||
+ | mkdir / | ||
+ | chmod +x / | ||
+ | rc-update add olivetin default | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | Yes, i prefer to keep it's log separate, so i created also a log folder for it. | ||
+ | |||