alloydb-auth-proxy icon indicating copy to clipboard operation
alloydb-auth-proxy copied to clipboard

Document usage with systemd

Open enocom opened this issue 10 months ago • 2 comments

We should provide an example systemd config file in our documentation.

See https://github.com/GoogleCloudPlatform/cloud-sql-proxy/issues/4#issuecomment-768069608.

enocom avatar Apr 24 '24 16:04 enocom

Something like this:

[Unit]
Description=AlloyDB Auth Proxy service
Wants=network-online.target
After=network-online.target

[Service]
WorkingDirectory=/usr/bin
ExecStart=/usr/bin/alloydb-auth-proxy <INSTANCE_URI>
Restart=always
Type=simple
StandardError=syslog
StandardOutput=journal
KillMode=process

[Install]
WantedBy=multi-user.target

enocom avatar Apr 24 '24 16:04 enocom

Once we finish this, we should also update https://cloud.google.com/alloydb/docs/auth-proxy/best-practices and link to the setup.

enocom avatar Jul 29 '24 15:07 enocom