nsneedx and systemsneed
This commit is contained in:
parent
7021f3a4e0
commit
0544f64949
1
Makefile
1
Makefile
@ -27,7 +27,6 @@ install-nginx:
|
|||||||
|
|
||||||
install-systemd:
|
install-systemd:
|
||||||
@install -Dm644 doc/sneedmc.service ${systemd_dir}/sneedmc.service
|
@install -Dm644 doc/sneedmc.service ${systemd_dir}/sneedmc.service
|
||||||
@install -Dm644 doc/sneedmc.conf ${DESTDIR}/${confdir}/sneedmc.conf
|
|
||||||
|
|
||||||
install-bin:
|
install-bin:
|
||||||
@install -Dm755 ${BIN} ${bindir}/${BIN}
|
@install -Dm755 ${BIN} ${bindir}/${BIN}
|
||||||
|
12
doc/sneedmc.nginx
Normal file
12
doc/sneedmc.nginx
Normal 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
11
doc/sneedmc.service
Normal 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
|
Loading…
Reference in New Issue
Block a user