Created
January 20, 2019 20:49
-
-
Save itsrachelfish/6a597bbd2071629193ec3eb891ffcf69 to your computer and use it in GitHub Desktop.
Volunteer database nginx config
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
server { | |
listen 80; | |
server_name volunteer.apogaea.com voldb.apogaea.com voldb.apourl.co; | |
return 302 https://volunteer.apogaea.com$request_uri; | |
} | |
server { | |
listen 443 ssl; | |
server_name volunteer.apogaea.com; | |
ssl on; | |
ssl_certificate /etc/letsencrypt/live/volunteer.apogaea.com/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/volunteer.apogaea.com/privkey.pem; | |
ssl_dhparam /etc/nginx/cert/volunteer.apogaea.com.dh.pem; | |
ssl_protocols TLSv1.1 TLSv1.2; | |
ssl_session_timeout 5m; | |
client_max_body_size 32M; | |
fastcgi_buffers 16 16k; | |
fastcgi_buffer_size 32k; | |
add_header Strict-Transport-Security max-age=15768000; | |
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK'; | |
ssl_prefer_server_ciphers on; | |
root /home/voldb/volunteers/laravel/public; | |
index index.php index.html index.htm; | |
server_name volunteer.apogaea.com; | |
location / { | |
try_files $uri $uri/ /index.php?$query_string; | |
} | |
# pass the PHP scripts to FastCGI server | |
location ~ \.php$ { | |
try_files $uri =404; | |
fastcgi_pass unix:/var/run/php7.2-fpm-voldb.sock; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
include fastcgi_params; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment