Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- defaults
- timeout connect 50000
- timeout client 300000
- timeout server 300000
- log stdout format raw local0 debug
- listen stats
- bind :3333
- mode http
- stats enable
- stats hide-version
- stats realm Haproxy\ Statistics
- stats uri /stats
- stats auth admin:324012
- frontend segments-service-http
- mode http
- bind :8090
- # NEW
- acl get-segment path_end -i /segments/v1/segment/get
- acl get-client-segments path_end -i /segments/v1/client/segments/get
- acl get-segment-clients path_end -i /segments/v1/segment/clients/get
- acl add-client-to-segment path_end -i /segments/v1/segment/client/add
- acl remove-client-from-segment path_end -i /segments/v1/segment/client/remove
- acl count-clients-in-segments path_end -i /segments/v1/segment/client/count
- acl create-segment path_end -i /segments/v1/segment/create
- acl search-segments path_end -i /segments/v1/segment/search
- acl get-task path_end -i /segments/v1/task/get
- acl get-tasks path_beg -i /segments/v1/task/search
- acl upload-segments path_end -i /segments/v1/upload
- acl remove-clients path_end -i /segments/v1/clients/remove
- acl remove-clients-segment path_end -i /segments/v1/segment/clients/remove
- acl upload-clients-segment path_end -i /segments/v1/segment/clients/upload
- acl archive-segment path_end -i /segments/v1/segment/archive
- # OLD
- acl get-segment-old path_end -i /segments/segment/get
- acl get-client-segments-old path_end -i /segments/client/segments/get
- acl get-segment-clients-old path_end -i /segments/segment/clients/get
- acl add-client-to-segment-old path_end -i /segments/segment/client/add
- acl remove-client-from-segment-old path_end -i /segments/segment/client/remove
- acl count-clients-in-segments-old path_end -i /segments/segment/client/count
- acl create-segment-old path_end -i /segments/segment/create
- acl search-segments-old path_end -i /segments/segment/search
- acl get-task-old path_end -i /segments/task/get
- acl upload-segments-old path_end -i /segments/upload
- acl remove-clients-old path_end -i /segments/clients/remove
- acl remove-clients-segment-old path_end -i /segments/segment/clients/remove
- acl upload-clients-segment-old path_end -i /segments/segment/clients/upload
- acl archive-segment-old path_end -i /segments/segment/archive
- http-request deny if !get-segment !get-client-segments !get-segment-clients !add-client-to-segment !remove-client-from-segment !count-clients-in-segments !create-segment !search-segments !upload-segments !get-task !get-tasks !remove-clients !remove-clients-segment !upload-clients-segment !get-segment-old !get-client-segments-old !get-segment-clients-old !add-client-to-segment-old !remove-client-from-segment-old !count-clients-in-segments-old !create-segment-old !search-segments-old !upload-segments-old !get-task-old !remove-clients-old !remove-clients-segment-old !upload-clients-segment-old !archive-segment !archive-segment-old
- http-request deny if !METH_GET get-segment
- http-request set-path /segments/segments/get_segment if get-segment
- http-request deny if !METH_GET get-client-segments
- http-request set-path /segments/segments/get_client_segments if get-client-segments
- http-request deny if !METH_GET get-segment-clients
- http-request set-path /segments/segments/get_segment_clients if get-segment-clients
- http-request deny if !METH_POST add-client-to-segment
- http-request set-path /segments/segments/add_client_to_segment if add-client-to-segment
- http-request deny if !METH_POST remove-client-from-segment
- http-request set-path /segments/segments/remove_client_from_segment if remove-client-from-segment
- http-request deny if !METH_POST count-clients-in-segments
- http-request set-path /segments/segments/count_clients_in_segments if count-clients-in-segments
- http-request deny if !METH_POST create-segment
- http-request set-path /segments/segments/create_segment if create-segment
- http-request deny if !METH_GET get-task
- http-request set-path /segments/utils/get_status_by_task if get-task
- http-request deny if !METH_GET get-tasks
- http-request set-path /segments/utils/get_status_by_tasks if get-tasks
- http-request deny if !METH_POST upload-segments
- http-request set-path /upload/segments/utils/import_segments if upload-segments
- http-request deny if !METH_POST remove-clients
- http-request set-path /upload/segments/utils/remove_clients if remove-clients
- http-request deny if !METH_POST remove-clients-segment
- http-request set-path /upload/segments/utils/remove_clients_from_specific_segment if remove-clients-segment
- http-request deny if !METH_POST upload-clients-segment
- http-request set-path /upload/segments/utils/import_clients_to_specific_segment if upload-clients-segment
- http-request deny if !METH_GET search-segments
- http-request set-path /segments/segments/get_segments_by_filter if search-segments
- http-request deny if !METH_POST archive-segment
- http-request set-path /segments/segments/archive_segment if archive-segment
- # http-request deny if !get-segment-old !get-client-segments-old !get-segment-clients-old !add-client-to-segment-old !remove-client-from-segment-old !count-clients-in-segments-old !create-segment-old !search-segments-old !upload-segments-old !get-task-old !remove-clients-old !remove-clients-segment-old !upload-clients-segment-old
- http-request deny if !METH_GET get-segment-old
- http-request set-path /segments/segments/get_segment if get-segment-old
- http-request deny if !METH_GET get-client-segments-old
- http-request set-path /segments/segments/get_client_segments if get-client-segments-old
- http-request deny if !METH_GET get-segment-clients-old
- http-request set-path /segments/segments/get_segment_clients if get-segment-clients-old
- http-request deny if !METH_POST add-client-to-segment-old
- http-request set-path /segments/segments/add_client_to_segment if add-client-to-segment-old
- http-request deny if !METH_POST remove-client-from-segment-old
- http-request set-path /segments/segments/remove_client_from_segment if remove-client-from-segment-old
- http-request deny if !METH_POST count-clients-in-segments-old
- http-request set-path /segments/segments/count_clients_in_segments if count-clients-in-segments-old
- http-request deny if !METH_POST create-segment-old
- http-request set-path /segments/segments/create_segment if create-segment-old
- http-request deny if !METH_GET get-task-old
- http-request set-path /segments/utils/get_status_by_task if get-task-old
- http-request deny if !METH_POST upload-segments-old
- http-request set-path /upload/segments/utils/import_segments if upload-segments-old
- http-request deny if !METH_POST remove-clients-old
- http-request set-path /upload/segments/utils/remove_clients if remove-clients-old
- http-request deny if !METH_POST remove-clients-segment-old
- http-request set-path /upload/segments/utils/remove_clients_from_specific_segment if remove-clients-segment-old
- http-request deny if !METH_POST upload-clients-segment-old
- http-request set-path /upload/segments/utils/import_clients_to_specific_segment if upload-clients-segment-old
- http-request deny if !METH_GET search-segments-old
- http-request set-path /segments/segments/get_segments_by_filter if search-segments-old
- http-request deny if !METH_POST archive-segment-old
- http-request set-path /segments/segments/archive_segment if archive-segment-old
- default_backend segment-service
- backend segment-service
- mode http
- balance roundrobin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement