Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95846040 authored by Nicolas Gelot's avatar Nicolas Gelot
Browse files

Merge branch 'fix/nginx_dns' into 'slim'

Fix docker static dns

See merge request !298
parents 7ddac7f0 6707c5c9
Loading
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -12,10 +12,6 @@ map $http_x_forwarded_proto $real_scheme {
# use docker DNS resolver with limited cache value for nc update or scaling
resolver 127.0.0.11 valid=5s;

upstream php-handler {
    server ${NEXTCLOUD_ADDR};
}

server {
    listen 80;
    listen [::]:80;
@@ -135,6 +131,7 @@ server {

        fastcgi_split_path_info ^(.+?\.php)(/.*)$;
        set $path_info $fastcgi_path_info;
        set $php_upstream "${NEXTCLOUD_ADDR}";

        try_files $fastcgi_script_name =404;

@@ -145,7 +142,7 @@ server {

        fastcgi_param modHeadersAvailable true;         # Avoid sending the security headers twice
        fastcgi_param front_controller_active true;     # Enable pretty urls
        fastcgi_pass php-handler;
        fastcgi_pass $php_upstream;

        fastcgi_intercept_errors on;
        fastcgi_request_buffering off;