Wiki page syncthing changed with summary [added nginx ssl params and example] by Daniel
This commit is contained in:
parent
a45fb09611
commit
89731a3c95
1 changed files with 42 additions and 0 deletions
|
@ -50,4 +50,46 @@ location / {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
</code>
|
||||||
|
|
||||||
|
|
||||||
|
===== Nginx =====
|
||||||
|
|
||||||
|
Check also [[/en/server/services/nginx]]
|
||||||
|
|
||||||
|
|
||||||
|
==== ssl-params.conf ====
|
||||||
|
|
||||||
|
<code>
|
||||||
|
nano /etc/nginx/conf.d/ssl-params.conf
|
||||||
|
</code>
|
||||||
|
|
||||||
|
==== example ====
|
||||||
|
|
||||||
|
<code>
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
server_name nextcloud.home;
|
||||||
|
|
||||||
|
# enforce https
|
||||||
|
return 301 https://$server_name:443$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
server_name nextcloud.home;
|
||||||
|
|
||||||
|
ssl_certificate /etc/nginx/ssl/nextcloud.home.crt;
|
||||||
|
ssl_certificate_key /etc/nginx/ssl/nextcloud.home.key;
|
||||||
|
include conf.d/ssl-params.conf;
|
||||||
|
|
||||||
|
access_log /var/log/nginx/nextcloud.home_access_log;
|
||||||
|
error_log /var/log/nginx/nextcloud.home-error_log;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
your things;
|
||||||
|
}
|
||||||
|
}
|
||||||
</code>
|
</code>
|
Loading…
Reference in a new issue