Commit 7fc0b85f authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian: add nginx config for rebuilder-snapshot.debian.net

parent bd88512f
Loading
Loading
Loading
Loading
+32 −0
Original line number Diff line number Diff line
user                   www-data;
worker_processes       auto;
error_log              /var/log/nginx/error.log;
pid                    /run/nginx.pid;

events {
    worker_connections  1024;
}

http {
    include             mime.types;
    sendfile            on;
    server_tokens       off;

    server {
        listen          80;
        server_name     localhost;

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

        location 		/rebuilder-snapshot/storage {
	    alias		/srv/data/rebuilder-snapshot/storage;
	    autoindex	on;
        }


    }
}