|
919 | 919 | expect(content).to include('proxy_set_header Host $1.$http_host;')
|
920 | 920 | expect(content).to include('proxy_set_header X-Gitlab-Namespace-In-Path $namespace;')
|
921 | 921 | expect(content).to include('proxy_redirect ~^https://(projects\.pages\.localhost)/(.*)$ https://$1/$2;')
|
922 |
| - expect(content).to include('proxy_redirect ~^https://(.*)\.(pages\.localhost)/(.*)$ https://$2/$1/$3;') |
923 |
| - expect(content).to include('proxy_redirect ~^//(.*)\.(pages\.localhost)/(.*)$ /$1/$3;') |
| 922 | + expect(content).to include('proxy_redirect ~^https://([^/]*)\.(pages\.localhost)/(.*)$ https://$2/$1/$3;') |
| 923 | + expect(content).to include('proxy_redirect ~^//([^/]*)\.(pages\.localhost)/(.*)$ /$1/$3;') |
924 | 924 | expect(content).to include('proxy_redirect ~^/(.*)$ /$namespace/$1;')
|
925 | 925 | expect(content).to include('proxy_hide_header X-Gitlab-Namespace-In-Path;')
|
926 | 926 | # Below checks are to verify proper render entries are made
|
|
952 | 952 | expect(content).to include('proxy_set_header Host $1.$http_host;')
|
953 | 953 | expect(content).to include('proxy_set_header X-Gitlab-Namespace-In-Path $namespace;')
|
954 | 954 | expect(content).to include('proxy_redirect ~^https://(projects\.pages\.localhost:25800)/(.*)$ https://$1/$2;')
|
955 |
| - expect(content).to include('proxy_redirect ~^https://(.*)\.(pages\.localhost:25800)/(.*)$ https://$2/$1/$3;') |
956 |
| - expect(content).to include('proxy_redirect ~^//(.*)\.(pages\.localhost:25800)/(.*)$ /$1/$3;') |
| 955 | + expect(content).to include('proxy_redirect ~^https://([^/]*)\.(pages\.localhost:25800)/(.*)$ https://$2/$1/$3;') |
| 956 | + expect(content).to include('proxy_redirect ~^//([^/]*)\.(pages\.localhost:25800)/(.*)$ /$1/$3;') |
957 | 957 | expect(content).to include('proxy_redirect ~^/(.*)$ /$namespace/$1;')
|
958 | 958 | expect(content).to include('proxy_hide_header X-Gitlab-Namespace-In-Path;')
|
959 | 959 | # Below checks are to verify proper render entries are made
|
|
983 | 983 | expect(content).not_to include('proxy_set_header Host $1.$http_host;')
|
984 | 984 | expect(content).not_to include('proxy_set_header X-Gitlab-Namespace-In-Path $namespace;')
|
985 | 985 | expect(content).not_to include('proxy_redirect ~^https://(projects\.pages\.localhost)/(.*)$ https://$1/$2;')
|
986 |
| - expect(content).not_to include('proxy_redirect ~^https://(.*)\.(pages\.localhost)/(.*)$ https://$2/$1/$3;') |
987 |
| - expect(content).not_to include('proxy_redirect ~^//(.*)\.(pages\.localhost)/(.*)$ /$1/$3;') |
| 986 | + expect(content).not_to include('proxy_redirect ~^https://([^/]*)\.(pages\.localhost)/(.*)$ https://$2/$1/$3;') |
| 987 | + expect(content).not_to include('proxy_redirect ~^//([^/]*)\.(pages\.localhost)/(.*)$ /$1/$3;') |
988 | 988 | expect(content).not_to include('proxy_redirect ~^/(.*)$ /$namespace/$1;')
|
989 | 989 | expect(content).to include('proxy_hide_header X-Gitlab-Namespace-In-Path;')
|
990 | 990 | # Below checks are to verify proper render entries are made
|
|
0 commit comments