Init repo
This commit is contained in:
41
default_configuration/dolibarr/nginx.conf.example
Normal file
41
default_configuration/dolibarr/nginx.conf.example
Normal file
@@ -0,0 +1,41 @@
|
||||
server {
|
||||
|
||||
root /dolibarr/htdocs;
|
||||
|
||||
|
||||
listen [::]:443 ssl;
|
||||
|
||||
listen 443 ssl;
|
||||
|
||||
ssl_certificate /etc/ssl/__dolibarr_domain__.crt;
|
||||
ssl_certificate_key /etc/ssl/private/__dolibarr_domain__.key;
|
||||
|
||||
index index.html index.php;
|
||||
|
||||
server_name __dolibar_domain__;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_intercept_errors on;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
server {
|
||||
|
||||
listen [::]:80;
|
||||
listen 80;
|
||||
server_name __dolibarr_domain__;
|
||||
|
||||
if ($host = dolibarr.example.fr) {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
}
|
||||
45
default_configuration/dolibarr/nginx.conf.sample
Normal file
45
default_configuration/dolibarr/nginx.conf.sample
Normal file
@@ -0,0 +1,45 @@
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name __dolibarr_domain__;
|
||||
|
||||
include snippets/acme-challenge.conf;
|
||||
|
||||
return 301 https://$http_host$request_uri;
|
||||
|
||||
root /htdocs/;
|
||||
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name __dolibarr_domain__;
|
||||
|
||||
root /var/www/dolibarr/htdocs;
|
||||
|
||||
index index.html index.php;
|
||||
ssl_certificate /etc/ssl/__dolibarr_domain__.crt;
|
||||
ssl_certificate_key /etc/ssl/private/__dolibarr_domain__.key;
|
||||
|
||||
include snippets/secure-ssl.conf;
|
||||
|
||||
include snippets/acme-challenge.conf;
|
||||
|
||||
location / {
|
||||
|
||||
try_files $uri $uri/ =404;
|
||||
|
||||
}
|
||||
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_intercept_errors on;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user