src/bin/proxmox-backup-proxy.rs: implement unpriviledged server
We want to run the public server as user www-data. Requests needing root priviledges needs to be proxied to the proxmox-backup.service, which now listens to 127.0.0.1:82.
This commit is contained in:
1
debian/install
vendored
1
debian/install
vendored
@ -1,4 +1,5 @@
|
||||
target/release/proxmox-backup-api /usr/sbin
|
||||
target/release/proxmox-backup-proxy /usr/bin
|
||||
target/release/proxmox-backup-manager /usr/sbin
|
||||
target/release/proxmox-backup-client /usr/sbin
|
||||
target/release/catar /usr/sbin
|
||||
|
16
debian/proxmox-backup-proxy.service
vendored
Normal file
16
debian/proxmox-backup-proxy.service
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Proxmox API Proxy Server
|
||||
ConditionPathExists=/usr/bin/proxmox-backup-proxy
|
||||
Wants=proxmox-backup.service
|
||||
After=syslog.service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=www-data
|
||||
Group=www-data
|
||||
ExecStart=/usr/bin/proxmox-backup-proxy start
|
||||
Type=simple
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
4
debian/rules
vendored
4
debian/rules
vendored
@ -7,3 +7,7 @@
|
||||
%:
|
||||
dh $@ --with=systemd --with=bash-completion
|
||||
|
||||
|
||||
override_dh_installinit:
|
||||
dh_installinit
|
||||
dh_installinit --name proxmox-backup-proxy
|
||||
|
Reference in New Issue
Block a user