77 lines
2.5 KiB
Plaintext
77 lines
2.5 KiB
Plaintext
server {
|
|
listen 80;
|
|
|
|
client_body_buffer_size 100K;
|
|
client_header_buffer_size 1K;
|
|
client_max_body_size 5M;
|
|
|
|
client_body_timeout 10;
|
|
client_header_timeout 10;
|
|
keepalive_timeout 5 5;
|
|
send_timeout 10;
|
|
|
|
root /var/www/passbolt/webroot;
|
|
index index.php;
|
|
error_log /dev/stdout info;
|
|
access_log /dev/stdout;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$args;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
try_files $uri =404;
|
|
include fastcgi_params;
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
fastcgi_index index.php;
|
|
fastcgi_intercept_errors on;
|
|
fastcgi_split_path_info ^(.+\.php)(.+)$;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param SERVER_NAME $http_host;
|
|
fastcgi_param PHP_VALUE "upload_max_filesize=5M \n post_max_size=5M";
|
|
}
|
|
|
|
}
|
|
|
|
server {
|
|
listen 443;
|
|
|
|
client_body_buffer_size 100K;
|
|
client_header_buffer_size 1K;
|
|
client_max_body_size 5M;
|
|
|
|
client_body_timeout 10;
|
|
client_header_timeout 10;
|
|
keepalive_timeout 5 5;
|
|
send_timeout 10;
|
|
|
|
ssl on;
|
|
ssl_certificate /etc/ssl/certs/certificate.crt;
|
|
ssl_certificate_key /etc/ssl/certs/certificate.key;
|
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
|
ssl_prefer_server_ciphers on;
|
|
ssl_ciphers "ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4:@STRENGTH";
|
|
ssl_session_tickets off;
|
|
|
|
root /var/www/passbolt/webroot;
|
|
index index.php;
|
|
error_log /dev/stdout info;
|
|
access_log /dev/stdout;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$args;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
try_files $uri =404;
|
|
include fastcgi_params;
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
fastcgi_index index.php;
|
|
fastcgi_intercept_errors on;
|
|
fastcgi_split_path_info ^(.+\.php)(.+)$;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param SERVER_NAME $http_host;
|
|
fastcgi_param PHP_VALUE "upload_max_filesize=5M \n post_max_size=5M";
|
|
}
|
|
}
|