Commit 0a7cd21a authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian rebuilder-snapshot: make /api work

parent 7c3c91b1
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -21,15 +21,13 @@ http {
	    autoindex	on;
        }

        location /api {
	    rewrite     	/api(.+) $1 break;
	    proxy_pass  	http://127.0.0.1:5001;
        location ~ /api(.*)$ {
	    proxy_pass  	http://127.0.0.1:5001/$1;
	    include		proxy_params;
        }

        location /rebuilder-snapshot/api {
	    rewrite     	/rebuilder-snapshot/api(.+) $1 break;
	    proxy_pass  	http://127.0.0.1:5001;
        location ~ /rebuilder-snapshot/api(.*)$ {
	    proxy_pass  	http://127.0.0.1:5001/$1;
	    include		proxy_params;
        }