Wiki page syncthing changed with summary [old revision restored (2022/10/24 10:24) wrong page] by Daniel
This commit is contained in:
parent
89731a3c95
commit
31c42ca778
1 changed files with 0 additions and 42 deletions
|
@ -51,45 +51,3 @@ 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>
|
Loading…
Reference in a new issue