Difference between revisions of "Dradis: bind all interfaces"
Jump to navigation
Jump to search
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...") |
Onnowpurbo (talk | contribs) |
||
Line 2: | Line 2: | ||
cd /lib/systemd/system | cd /lib/systemd/system | ||
+ | |||
+ | vi /lib/systemd/system/dradis.service | ||
Edit dradis.service | Edit dradis.service |
Latest revision as of 08:44, 15 May 2018
Untuk bind all interface ke Dradis
cd /lib/systemd/system
vi /lib/systemd/system/dradis.service
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