mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	Let Nginx deliver static files directory in all examples
This commit is contained in:
		
							parent
							
								
									088337295a
								
							
						
					
					
						commit
						3e5a3ee4e4
					
				
					 1 changed files with 8 additions and 1 deletions
				
			
		|  | @ -154,7 +154,10 @@ content: | ||||||
|     server { |     server { | ||||||
|         listen 80; |         listen 80; | ||||||
|         server_name searx.example.com; |         server_name searx.example.com; | ||||||
|         root /usr/local/searx; |         root /usr/local/searx/searx; | ||||||
|  | 
 | ||||||
|  |         location /static { | ||||||
|  |         } | ||||||
| 
 | 
 | ||||||
|         location / { |         location / { | ||||||
|                 include uwsgi_params; |                 include uwsgi_params; | ||||||
|  | @ -199,6 +202,10 @@ in case of single-user or low-traffic instances.) | ||||||
| 
 | 
 | ||||||
| .. code:: nginx | .. code:: nginx | ||||||
| 
 | 
 | ||||||
|  |     location /searx/static { | ||||||
|  |             alias /usr/local/searx/searx/static; | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|     location /searx { |     location /searx { | ||||||
|         proxy_pass http://127.0.0.1:8888; |         proxy_pass http://127.0.0.1:8888; | ||||||
|         proxy_set_header Host $host; |         proxy_set_header Host $host; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Robin Schneider
						Robin Schneider