Dradis: bind all interfaces

From OnnoWiki
Revision as of 08:44, 15 May 2018 by Onnowpurbo (talk | contribs) (Created page with "Untuk bind all interface ke Dradis cd /lib/systemd/system Edit dradis.service [Unit] Description=Dradis web application [Install] WantedBy=multi-user.target [Ser...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Untuk bind all interface ke Dradis

cd /lib/systemd/system

Edit dradis.service

[Unit]
Description=Dradis web application

[Install]
WantedBy=multi-user.target
 
[Service]
WorkingDirectory=/usr/lib/dradis
ExecStartPre=/bin/sh -c 'test -e /var/lib/dradis/secretkey || (umask 077; echo "
SECRET_KEY_BASE=$(pwgen -1 -s -n 100)" >/var/lib/dradis/secretkey)'
ExecStart=/usr/bin/bundle exec rails server webrick
Type=simple
User=dradis
Group=dradis
Environment=RAILS_ENV=development
EnvironmentFile=-/var/lib/dradis/secretkey


Pastikan

ExecStart=/usr/bin/bundle exec rails server -b 0.0.0.0 webrick