fix nginx config
This commit is contained in:
		@@ -1,37 +1,15 @@
 | 
			
		||||
location @drop_app {
 | 
			
		||||
    proxy_pass unix:///tmp/drop.sock;
 | 
			
		||||
    proxy_set_header Host $host;
 | 
			
		||||
    proxy_set_header X-Forwarded-For $remote_addr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
server {
 | 
			
		||||
    server_name ~^drop\.bakatrouble\.(pw|me)$;
 | 
			
		||||
    root /srv/apps/drop/files;
 | 
			
		||||
 | 
			
		||||
    location /~static/ {
 | 
			
		||||
        alias /srv/apps/drop/~static;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    location / {
 | 
			
		||||
        try_files $uri @drop_app;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    include /etc/nginx/letsencrypt-serv.conf;
 | 
			
		||||
    include /srv/apps/drop/configs/nginx_include.conf;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
server {
 | 
			
		||||
    server_name ~^(?<dir>.*)\.drop\.bakatrouble\.(pw|me)$;
 | 
			
		||||
    root /srv/apps/drop/subdomain_files/$dir;
 | 
			
		||||
 | 
			
		||||
    location /~static/ {
 | 
			
		||||
        alias /srv/apps/drop/~static;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    location / {
 | 
			
		||||
        try_files $uri @drop_app;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    include /etc/nginx/letsencrypt-serv.conf;
 | 
			
		||||
    include /srv/apps/drop/configs/nginx_include.conf;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
server {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										15
									
								
								configs/nginx_include.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								configs/nginx_include.conf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
location @drop_app {
 | 
			
		||||
    proxy_pass unix:///tmp/drop.sock;
 | 
			
		||||
    proxy_set_header Host $host;
 | 
			
		||||
    proxy_set_header X-Forwarded-For $remote_addr;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
location /~static/ {
 | 
			
		||||
    alias /srv/apps/drop/~static;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
location / {
 | 
			
		||||
    try_files $uri @drop_app;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
include /etc/nginx/letsencrypt-serv.conf;
 | 
			
		||||
		Reference in New Issue
	
	Block a user