Apache HTTPD
Flow of an inbound network request
%%{init: {'theme': 'neutral'}}%% graph LR A[Your Browser] -->|HTTPS 443/tcp| Z Z["Proxy"] -->|HTTP 80/tcp| C C["Single HTTP frontend"] H["Prometheus"] B["gRPC API"] subgraph "OliveTin service" C -->|/api/| D[REST API] --> B C -->|/| E[webui] C -->|/metrics/| H end
This is an example of how to setup a DNS name based Apache HTTPD proxy for OliveTin. It assumes OliveTin is running on localhost, port 1337.
/etc/httpd/conf.d/OliveTin.conf
<VirtualHost *:80>
ServerName olivetin.example.com
ProxyPass / http://localhost:1337/
ProxyPassReverse / http://localhost:1337/
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/websocket
RewriteRule /(.) ws://localhost:1337/websocket [P,L]
</VirtualHost>
Note, you virtual host should not include a DocumentRoot directive - httpd is just proxying OliveTin, not serving it’s actual pages.