Fix presentation of newlines in registry data
Add contrib directory and systemd service file
This commit is contained in:
parent
4f785d4dd0
commit
740a1ef20e
@ -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" } ]
|
||||||
|
22
contrib/dn42regsrv.service
Normal file
22
contrib/dn42regsrv.service
Normal 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
|
Loading…
x
Reference in New Issue
Block a user