Skip to content
Snippets Groups Projects
Commit 97c044b4 authored by Enrico Stano's avatar Enrico Stano
Browse files

Nginx SSL configuration for forms.coopdevs.org

parent e6c6f6c0
No related branches found
No related tags found
No related merge requests found
......@@ -3,10 +3,24 @@ upstream php {
}
server {
listen 80;
listen 80; listen [::]:80;
server_name {{ limesurvey_server_name }};
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
server_name {{ limesurvey_server_name }};
ssl_certificate /etc/letsencrypt/live/{{ limesurvey_server_name }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ limesurvey_server_name }}/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
gzip on;
root {{ limesurvey_dir }};
index index.php index.html index.htm;
server_name {{ limesurvey_server_name }};
location / {
try_files $uri $uri/ =404;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment