1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

added centos/rhel installation on netbox.md postgresql.md and web-server.md

This commit is contained in:
Chagara
2016-09-02 16:38:58 -04:00
parent 8341800a85
commit 2213e3e0cf
3 changed files with 56 additions and 5 deletions

View File

@@ -1,18 +1,29 @@
# Web Server Installation
We'll set up a simple WSGI front end using [gunicorn](http://gunicorn.org/) for the purposes of this guide. For web servers, we provide example configurations for both [nginx](https://www.nginx.com/resources/wiki/) and [Apache](http://httpd.apache.org/docs/2.4). (You are of course free to use whichever combination of HTTP and WSGI services you'd like.) We'll also use [supervisord](http://supervisord.org/) to enable service persistence.
We'll set up a simple WSGI front end using [gunicorn](http://gunicorn.org/) for the purposes of this guide. For web servers, we provide example configurations for both [nginx](https://www.nginx.com/resources/wiki/) and [Apache](http://httpd.apache.org/docs/2.4). (You are of course free to use whichever combination of HTTP and WSGI services you'd like.) We'll also use [supervisord](http://supervisord.org/) to enable service persistence.
Debian/Ubuntu
```
# sudo apt-get install -y gunicorn supervisor
```
Centos/RHEL
```
# sudo yum install -y gunicorn supervisor
```
## Option A: nginx
The following will serve as a minimal nginx configuration. Be sure to modify your server name and installation path appropriately.
Debian/Ubuntu
```
# sudo apt-get install -y nginx
```
Centos/RHEL
```
# sudo yum install -y nginx
```
Once nginx is installed, proceed with the following configuration:
@@ -43,7 +54,7 @@ Save this configuration to `/etc/nginx/sites-available/netbox`. Then, delete `/e
```
# cd /etc/nginx/sites-enabled/
# rm default
# ln -s /etc/nginx/sites-available/netbox
# ln -s /etc/nginx/sites-available/netbox
```
Restart the nginx service to use the new configuration.
@@ -57,9 +68,16 @@ To enable SSL, consider this guide on [securing nginx with Let's Encrypt](https:
## Option B: Apache
Debian/Ubuntu
```
# sudo apt-get install -y apache2
```
Centos/RHEL
```
# sudo yum install -y httpd
```
Once Apache is installed, proceed with the following configuration (Be sure to modify the `ServerName` appropriately):