Forum Discussion

Sara123's avatar
Sara123
Icon for Nimbostratus rankNimbostratus
May 04, 2023

Convert Nginx rules to f5 irules

Hi,

I would need some help in converting the below nginx rules to f5 irules.

location ~ ^/$ {
proxy_pass http://artifactory/ui/$1;

}

location / {

location ~ ^/$ {
proxy_pass http://artifactory/ui/ proxy_read_timeout 2400s;
proxy_pass_header Server;
proxy_cookie_path ~*^/.* /;
proxy_max_temp_file_size 0;
# proxy_buffer_size 128k;
# proxy_buffers 40 128k;
# proxy_busy_buffers_size 128k;
location ~ ^/ui {
proxy_pass http://artifactory;

}
proxy_pass http://artifactory-direct/artifactory/;
proxy_set_header X-Artifactory-Override-Base-Url $http_x_forwarded_proto://$host;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# add_header Strict-Transport-Security always;
}
location ~ ^/artifactory/ {
proxy_pass http://artifactory-direct;
}