We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f3b8c4 + d0f9753 commit c751e37Copy full SHA for c751e37
templates/default/appserver.nginx.conf.erb
@@ -29,14 +29,17 @@ server {
29
<%= @out[:extra_config] %>
30
}
31
32
+<% regex = node.read('nginx_custom', 'mobile_api_paths_regex') %>
33
<% (node.read('nginx_custom', 'mobile_app_additional_hostnames') || []).each do |name| %>
34
+ <% next if regex.blank? %>
35
+
36
server {
37
server_name <%= name %>;
38
39
include /srv/www/jiffyshirts/current/config/nginx/server_common.conf;
40
41
# allow to process mobile app requests if they made to additional domain
- location ~ ^/api/orders/\d+/(current_apple_pay_payload|update_apple_pay_address)$ {
42
+ location ~ <%= regex %> {
43
proxy_pass http://unicorn_jiffyshirts;
44
45
0 commit comments