-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update doc for Nginx * Remove dependencies * Update docs/installation.rst Co-authored-by: Clément "KPTN" OUDOT <[email protected]> * Update docs/configuration-nginx.rst Co-authored-by: Clément "KPTN" OUDOT <[email protected]> * Update docs/installation.rst Co-authored-by: Clément "KPTN" OUDOT <[email protected]> * Update docs/configuration-nginx.rst Co-authored-by: Clément "KPTN" OUDOT <[email protected]> --------- Co-authored-by: Clément "KPTN" OUDOT <[email protected]>
- Loading branch information
Showing
5 changed files
with
80 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
.. _nginx_configuration: | ||
|
||
Nginx configuration | ||
==================== | ||
|
||
Apache or Nginx is not installed by default. You must choose one. | ||
|
||
Current section explains how to install and configure Nginx. | ||
|
||
Install and configure Nginx | ||
---------------------------- | ||
|
||
On Debian: | ||
|
||
.. code-block:: shell | ||
apt install nginx php-fpm | ||
# configure php-fpm for Nginx | ||
a2enmod proxy_fcgi setenvif | ||
a2enconf php*-fpm.conf | ||
# enable the default website | ||
cd /etc/nginx/sites-enabled/ && ln -s ../sites-availables/service-desk | ||
On RHEL systems: | ||
|
||
.. code-block:: shell | ||
dnf install nginx php-fpm | ||
Virtual host configuration | ||
------------ | ||
|
||
Here is a sample block server configuration: | ||
|
||
.. code-block:: nginx | ||
server { | ||
listen 80; | ||
server_name sd.example.com; | ||
root /usr/share/service-desk/htdocs; | ||
index index.php; | ||
location ~ \.php$ { | ||
try_files $uri $uri/ =404; | ||
fastcgi_pass unix:/run/php/php-fpm.sock; | ||
include /etc/nginx/fastcgi_params; | ||
fastcgi_param SCRIPT_FILENAME $request_filename; | ||
} | ||
} | ||
.. warning:: You must protect the access to the application, else everyone will be able to reset any user password! | ||
|
||
External authentication | ||
----------------------- | ||
|
||
You can use any authentication source and authentication protocols supported by Nginx. | ||
Configuring these solutions is out of scope of the current documentation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters