Update haproxy.cfg with oauth rules
This commit is contained in:
		
							parent
							
								
									d8c201a7fe
								
							
						
					
					
						commit
						aabbe7735d
					
				@ -58,7 +58,7 @@ frontend http-in
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 acl transport_http_acl path_beg /api/v1/
 | 
					 acl transport_http_acl path_beg /api/v1/
 | 
				
			||||||
 acl letsencrypt_http_acl path_beg /.well-known/acme-challenge/
 | 
					 acl letsencrypt_http_acl path_beg /.well-known/acme-challenge/
 | 
				
			||||||
 acl tb_api_acl path_beg /api/ /swagger /webjars /v2/ /static/rulenode/
 | 
					 acl tb_api_acl path_beg /api/ /swagger /webjars /v2/ /static/rulenode/ /oauth2/ /login/oauth2/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 redirect scheme https if !letsencrypt_http_acl !transport_http_acl { env(FORCE_HTTPS_REDIRECT) -m str true }
 | 
					 redirect scheme https if !letsencrypt_http_acl !transport_http_acl { env(FORCE_HTTPS_REDIRECT) -m str true }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -76,7 +76,7 @@ frontend https_in
 | 
				
			|||||||
  reqadd X-Forwarded-Proto:\ https
 | 
					  reqadd X-Forwarded-Proto:\ https
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  acl transport_http_acl path_beg /api/v1/
 | 
					  acl transport_http_acl path_beg /api/v1/
 | 
				
			||||||
  acl tb_api_acl path_beg /api/ /swagger /webjars /v2/ /static/rulenode/
 | 
					  acl tb_api_acl path_beg /api/ /swagger /webjars /v2/ /static/rulenode/ /oauth2/ /login/oauth2/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  use_backend tb-http-backend if transport_http_acl
 | 
					  use_backend tb-http-backend if transport_http_acl
 | 
				
			||||||
  use_backend tb-api-backend if tb_api_acl
 | 
					  use_backend tb-api-backend if tb_api_acl
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user