nsneedx and systemsneed

This commit is contained in:
sneedium 2022-02-21 13:15:10 -05:00
parent 7021f3a4e0
commit 0544f64949
Signed by: sneedium
GPG Key ID: 906F66490FBE722F
3 changed files with 23 additions and 1 deletions

View File

@ -27,7 +27,6 @@ install-nginx:
install-systemd:
@install -Dm644 doc/sneedmc.service ${systemd_dir}/sneedmc.service
@install -Dm644 doc/sneedmc.conf ${DESTDIR}/${confdir}/sneedmc.conf
install-bin:
@install -Dm755 ${BIN} ${bindir}/${BIN}

12
doc/sneedmc.nginx Normal file
View File

@ -0,0 +1,12 @@
server {
rewrite_log on;
server_name sneedmc.org;
location / {
proxy_set_header Host $host;
proxy_pass http://localhost:33367;
}
listen 80 ; # use certbot to enable https
listen [::]:80 ;
}

11
doc/sneedmc.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=sneed
After=network.target
[Service]
EnvironmentFile=/etc/sneedmc.conf
WorkingDirectory=/srv/sneedmc
ExecStart=/usr/bin/sneedmc
[Install]
WantedBy=multi-user.target