Added web server install.
This commit is contained in:
parent
5ae1d544c8
commit
fd9c9979af
94
README.md
94
README.md
|
@ -22,6 +22,100 @@ Donc une page d'information permet d'apporter une réponse à ce cas, par exempl
|
||||||
|
|
||||||
Il s'agit d'une simle page XHTML faite à la main et placée dans `/var/www/audio.chalec.org/`.
|
Il s'agit d'une simle page XHTML faite à la main et placée dans `/var/www/audio.chalec.org/`.
|
||||||
|
|
||||||
|
## Installation basique
|
||||||
|
Installation d'un service nginx pour :
|
||||||
|
- la gestion des certificats SSL ;
|
||||||
|
- l'installation d'une page d'information sur comment se connecter au Mumble ;
|
||||||
|
- la possible installation d'un service client web pour Mumble ;
|
||||||
|
- l'éventuel déploiement de StatoolInfos ;
|
||||||
|
- …
|
||||||
|
|
||||||
|
Ouvrir les ports http (80) et https (443) :
|
||||||
|
```
|
||||||
|
ufw allow 'Nginx HTTP'
|
||||||
|
ufw allow 'Nginx HTTPS'
|
||||||
|
```
|
||||||
|
|
||||||
|
Installer les paquets :
|
||||||
|
```
|
||||||
|
apt-get install nginx python3-certbot-nginx
|
||||||
|
```
|
||||||
|
|
||||||
|
Configurer a minima le site web dans `/etc/nginx/sites-available/audio.chalec.org` :
|
||||||
|
```
|
||||||
|
server
|
||||||
|
{
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
|
||||||
|
server_name audio.chalec.org;
|
||||||
|
|
||||||
|
access_log /var/log/nginx/audio.chalec.org-access.log;
|
||||||
|
error_log /var/log/nginx/audio.chalec.org-error.log;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Activer la configuration :
|
||||||
|
```
|
||||||
|
cd /etc/nginx/sites-enable/
|
||||||
|
ln -s ../sites-available/audio.chalec.org
|
||||||
|
```
|
||||||
|
|
||||||
|
Vérifier que c'est bon et recharger :
|
||||||
|
```
|
||||||
|
nginx -t && systemctl reload nginx
|
||||||
|
```
|
||||||
|
|
||||||
|
Configurer le certificat SSl :
|
||||||
|
```
|
||||||
|
certbot --nginx
|
||||||
|
```
|
||||||
|
|
||||||
|
Mettre beau le fichier `/etc/nginx/sites-enabled/audio.chalec.org` :
|
||||||
|
```
|
||||||
|
server
|
||||||
|
{
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
|
||||||
|
server_name audio.chalec.org;
|
||||||
|
|
||||||
|
access_log /var/log/nginx/audio.chalec.org-access.log;
|
||||||
|
error_log /var/log/nginx/audio.chalec.org-error.log;
|
||||||
|
|
||||||
|
return 302 https://$host$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
server
|
||||||
|
{
|
||||||
|
set_real_ip_from 192.169.1.1;
|
||||||
|
real_ip_header proxy_protocol;
|
||||||
|
listen [::]:443 ssl ipv6only=on;
|
||||||
|
listen 443 ssl;
|
||||||
|
|
||||||
|
server_name audio.chalec.org;
|
||||||
|
|
||||||
|
access_log /var/log/nginx/audio.chalec.org-access.log;
|
||||||
|
error_log /var/log/nginx/audio.chalec.org-error.log;
|
||||||
|
|
||||||
|
ssl_certificate /etc/letsencrypt/live/audio.chalec.org/fullchain.pem; # managed by Certbot
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/audio.chalec.org/privkey.pem; # managed by Certbot
|
||||||
|
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||||
|
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||||
|
|
||||||
|
root /var/www/audio.chalec.org;
|
||||||
|
location = /
|
||||||
|
{
|
||||||
|
index index.xhtml;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Vérifier que c'est bon et recharger :
|
||||||
|
```
|
||||||
|
nginx -t && systemctl reload nginx
|
||||||
|
```
|
||||||
|
|
||||||
# Service Mumble
|
# Service Mumble
|
||||||
|
|
||||||
Service d'audio-conférence basé sur le logiciel libre Mumble : https://www.mumble.info/
|
Service d'audio-conférence basé sur le logiciel libre Mumble : https://www.mumble.info/
|
||||||
|
|
Loading…
Reference in New Issue