# Configuration nginx
Vous devrez configurer votre serveur nginx pour utiliser le portail de One Page Basket, voici les informations techniques fournies par notre premier contributeur sur ce point
server {
listen 80;
listen [::]:80;
server_name portail.votredomaine.fr;
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name portail.votredomaine.fr;
ssl_certificate /etc/letsencrypt/live/portail.votredomaine.fr/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/portail.votredomaine.fr/privkey.pem;
ssl_session_timeout 1d;
ssl_session_cache shared:MozSSL:10m; # about 40000 sessions
ssl_session_tickets off;
ssl_dhparam /etc/nginx/ssl/dhparams.pem;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305;
ssl_prefer_server_ciphers off;
add_header Strict-Transport-Security "max-age=63072000" always;
ssl_stapling on;
ssl_stapling_verify on;
ssl_trusted_certificate /etc/letsencrypt/live/portail.votredomaine.fr/chain.pem;
gzip on;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
access_log /var/log/nginx/portail.votredomaine.fr.log;
error_log /var/log/nginx/portail.votredomaine.fr.error.log;
root /srv/webs/dossier/de/stockage/de/dolibarr/htdocs/custom/onepagebasket/public;
index index.php;
location / {
try_files $uri $uri/ index.php;
}
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/run/php/php8.2-fpm-web.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}