Can I reverse-proxy the server into a sub-location?

Setting path = "/atuin does not work. I actually had to remove it.

Here are my Apache directives:

    ProxyPass /atuin http://localhost:8888
    ProxyPassReverse /atuin http://localhost:8888

This is my /etc/systemd/system/atuin.service:

[Unit]
Description=atuin
After=network.target postgresql.service
Requires=postgresql.service

[Service]
Type=simple
User=atuin
Group=atuin
EnvironmentFile=/etc/atuin/atuin.cfg
WorkingDirectory=/etc/atuin
Environment=HOME="/etc/atuin"
ExecStart=/usr/sbin/atuin server start
StandardOutput=append:/var/log/atuin/atuin.log
StandardError=append:/var/log/atuin/atuin.log
Restart=on-failure
RestartSec=3
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

And here’s the /etc/atuin/atuin.cfg:

ATUIN_HOST="127.0.0.1"
ATUIN_PORT=8888
ATUIN_OPEN_REGISTRATION=true
ATUIN_DB_URI="postgres://atuin:passwordhere@127.0.0.1/atuin"

With this everything works splendidly.

1 Like