Advertisement
Guest User

Untitled

a guest
Sep 17th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 3.82 KB | None | 0 0
  1. henning@homeserver:/docker/organizr2/nginx/proxy-confs$ cat ombi.subfolder.conf                                                                                  
  2. # first go into ombi settings, under the menu "Ombi" set the base url to /ombi and restart the ombi container                                                    
  3.                                                                                                                                                                  
  4. location /ombi {                                                                                                                                                
  5.     return 301 $scheme://$host/ombi/;                                                                                                                            
  6. }                                                                                                                                                                
  7.                                                                                                                                                                  
  8. location ^~ /ombi/ {                                                                                                                                            
  9.     # enable the next two lines for http auth                                                                                                                    
  10.     auth_basic "Restricted";                                                                                                                                    
  11.     auth_basic_user_file /config/nginx/.htpasswd;                                                                                                                
  12.                                                                                                                                                                  
  13.     # enable the next two lines for ldap auth, also customize and enable ldap.conf in the default conf                                                          
  14.     #auth_request /auth;                                                                                                                                        
  15.     #error_page 401 =200 /login;                                                                                                                                
  16.                                                                                                                                                                  
  17.     include /config/nginx/proxy.conf;                                                                                                                            
  18.     resolver 127.0.0.11 valid=30s;                                                                                                                              
  19.     set $upstream_ombi ombi;                                                                                                                                    
  20.     proxy_pass http://$upstream_ombi:3579;                                                                                                                      
  21. }                                                                                                                                                                
  22.                                                                                                                                                                  
  23. if ($http_referer ~* /ombi/) {                                                                                                                                  
  24.     rewrite ^/dist/(.*) $scheme://$host/ombi/dist/$1 permanent;                                                                                                  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement