Fix presentation of newlines in registry data

Add contrib directory and systemd service file
This commit is contained in:
Simon Marsh 2019-02-10 10:47:10 +00:00
parent 4f785d4dd0
commit 740a1ef20e
Signed by: burble
GPG Key ID: 7B9FE8780CFB6593
2 changed files with 23 additions and 1 deletions

View File

@ -87,7 +87,7 @@ Vue.component('reg-attribute', {
return reg[2] return reg[2]
}, },
decorated: function() { decorated: function() {
return anchorme(this.content, { return anchorme(this.content.replace(/\n/g, "<br/>"), {
truncate: 40, truncate: 40,
ips: false, ips: false,
attributes: [ { name: "target", value: "_blank" } ] attributes: [ { name: "target", value: "_blank" } ]

View File

@ -0,0 +1,22 @@
##########################################################################
# dn42regsrv example systemd service file
##########################################################################
[Unit]
Description=DN42 Registry API Server
After=network.target
[Install]
WantedBy=multi-user.target
[Service]
User=regsrv
Group=registry
Type=simple
Restart=on-failure
ExecStart=/home/regsrv/go/bin/dn42regsrv \
-s /home/regsrv/go/src/git.dn42.us/burble/dn42regsrv/StaticRoot \
-d /home/regsrv/registry
#########################################################################
# end of file