Nextcloud 13 nginx security alerts

Hi!

NextCloud 13 was installed on CentOS 7 + nginx + PHP7 + MariaDB 10

I always see security warnings about headers as in attached file.

All steps in nginx configuration tutorial performed.
Please, help me - how can I stop this warnings?
Thanks,
Andrew

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 12.0.2):
Operating system and version (eg, Ubuntu 17.04):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1):

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N):

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

PASTE HERE

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

PASTE HERE

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

compare the setings in headers.conf.

https://www.c-rieger.de/nextcloud-13-nginx-installation-guide-for-ubuntu-18-04-lts/#serversecurityverification

You’ll get those errors if you have set those headers twice. Try to comment the headers out and test your page. curl -vvvv https://yourpage
If you still see the headers, everything is ok. Next see if the warnings are gone.

Hello!
You are right! I had comment add_header strings in ssl.conf - and now I have not headers errors.
Thanks!