Fix service parameters for netbox install script and update NGINX RP config.
This commit is contained in:
parent
25f3cdf040
commit
e64e1099bc
@ -105,14 +105,17 @@ chown -R netbox:netbox /opt/netbox/netbox/media
|
|||||||
chown -R netbox:netbox /opt/netbox/netbox/static
|
chown -R netbox:netbox /opt/netbox/netbox/static
|
||||||
chown -R netbox:netbox /opt/netbox/netbox/media/reports
|
chown -R netbox:netbox /opt/netbox/netbox/media/reports
|
||||||
|
|
||||||
# Restart services
|
# Enable and start services
|
||||||
echo "Restarting services..."
|
echo "Enabling and starting services..."
|
||||||
systemctl restart nginx
|
systemctl enable netbox
|
||||||
systemctl restart redis-server
|
systemctl enable redis-server
|
||||||
systemctl restart postgresql
|
systemctl enable postgresql
|
||||||
|
systemctl start netbox
|
||||||
|
systemctl start redis-server
|
||||||
|
systemctl start postgresql
|
||||||
|
|
||||||
# NGINX reverse proxy config
|
# NGINX reverse proxy config
|
||||||
echo "NGINX reverse proxy configuration for Netbox:"
|
echo "Example NGINX reverse proxy configuration for Netbox:"
|
||||||
echo "
|
echo "
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
Loading…
Reference in New Issue
Block a user