Merge pull request #1716 from nextcloud/resolver-nginx-docs

add note to resolver in nginx reverse proxy docs
This commit is contained in:
Simon L 2023-01-11 08:04:19 +01:00 committed by GitHub
commit 32b2e6d2ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -257,8 +257,8 @@ server {
server_name <your-nc-domain>;
location / {
resolver localhost;
proxy_pass http://localhost:11000$request_uri;
resolver localhost; # Note: you need to set a valid dns resolver here or use 127.0.0.1 / [::1] instead of localhost in the line below. See https://stackoverflow.com/a/49642310 for a better explanation
proxy_pass http://localhost:11000$request_uri; # Note: you need to change localhost to 127.0.0.1 or [::1], if you don't use a valid dns resolver in the line above
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;