Method: Nginx::Proxy#locations

Defined in:
lib/nginx/server.rb

#locationsObject



133
134
135
136
137
138
139
140
141
# File 'lib/nginx/server.rb', line 133

def locations
  maps.keys.map do |key|
    <<-S
      location /#{key}/ {
        proxy_pass http://#{key}/;
      }
    S
  end.join "\n\n"
end