mirror of
https://github.com/AlexBocken/mykb.git
synced 2024-11-09 16:47:23 +01:00
add HSTS section
This commit is contained in:
parent
207b443898
commit
2182cbabd6
@ -190,6 +190,12 @@ Simply copy this file into `/etc/nginx/sites-available/nextcloud`, replace `clou
|
||||
|
||||
You should now be able to restart nginx and access your nextcloud instance at https://cloud.example.com.
|
||||
|
||||
##### Strict Transport Security
|
||||
For additional security, if everything works fine and you're happy with your domain you can uncomment the HSTS section in the nginx setup.
|
||||
```nginx
|
||||
add_header Strict-Transport-Security "max-age=15768000; includeSubDomains; preload" always;
|
||||
```
|
||||
|
||||
#### Background jobs
|
||||
Nextcloud requires certain tasks to be run on a scheduled basis. See Nextcloud's documentation for some details. The easiest (and most reliable) way to set up these background jobs is to use the systemd service and timer units that are already installed by nextcloud.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user