2021-06-25 11:30:16 +01:00
|
|
|
# Instana tracing
|
|
|
|
opentracing_load_tracer /usr/local/lib/libinstana_sensor.so /etc/instana-config.json;
|
|
|
|
opentracing_propagate_context;
|
|
|
|
|
2018-01-10 16:31:49 +00:00
|
|
|
server {
|
|
|
|
listen 8080;
|
|
|
|
server_name localhost;
|
|
|
|
|
2019-07-08 11:02:02 +01:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
2018-01-10 16:31:49 +00:00
|
|
|
#charset koi8-r;
|
|
|
|
#access_log /var/log/nginx/host.access.log main;
|
2019-12-18 15:41:37 +00:00
|
|
|
#error_log /dev/stdout debug;
|
|
|
|
#rewrite_log on;
|
2018-01-10 16:31:49 +00:00
|
|
|
|
|
|
|
location / {
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
index index.html index.htm;
|
2018-02-13 16:56:45 +00:00
|
|
|
ssi on;
|
2018-01-10 16:31:49 +00:00
|
|
|
}
|
|
|
|
|
2019-11-28 10:19:25 +00:00
|
|
|
location /images/ {
|
|
|
|
expires 5s;
|
|
|
|
root /usr/share/nginx/html;
|
2021-02-24 14:21:57 -05:00
|
|
|
try_files $uri /images/placeholder.png;
|
2019-11-28 10:19:25 +00:00
|
|
|
}
|
|
|
|
|
2018-01-10 16:31:49 +00:00
|
|
|
#error_page 404 /404.html;
|
|
|
|
|
|
|
|
# redirect server error pages to the static page /50x.html
|
|
|
|
#
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
location = /50x.html {
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
}
|
|
|
|
|
|
|
|
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
|
|
|
|
#
|
|
|
|
#location ~ \.php$ {
|
|
|
|
# proxy_pass http://127.0.0.1;
|
|
|
|
#}
|
|
|
|
|
|
|
|
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
|
|
|
|
#
|
|
|
|
#location ~ \.php$ {
|
|
|
|
# root html;
|
|
|
|
# fastcgi_pass 127.0.0.1:9000;
|
|
|
|
# fastcgi_index index.php;
|
|
|
|
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
|
|
|
|
# include fastcgi_params;
|
|
|
|
#}
|
|
|
|
|
|
|
|
# deny access to .htaccess files, if Apache's document root
|
|
|
|
# concurs with nginx's one
|
|
|
|
#
|
|
|
|
#location ~ /\.ht {
|
|
|
|
# deny all;
|
|
|
|
#}
|
|
|
|
|
|
|
|
location /api/catalogue/ {
|
2018-04-14 22:48:30 -05:00
|
|
|
proxy_pass http://${CATALOGUE_HOST}:8080/;
|
2018-01-10 16:31:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
location /api/user/ {
|
2018-04-14 22:48:30 -05:00
|
|
|
proxy_pass http://${USER_HOST}:8080/;
|
2018-01-10 16:31:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
location /api/cart/ {
|
2018-04-14 22:48:30 -05:00
|
|
|
proxy_pass http://${CART_HOST}:8080/;
|
2018-01-10 16:31:49 +00:00
|
|
|
}
|
|
|
|
|
2018-01-12 17:26:25 +00:00
|
|
|
location /api/shipping/ {
|
2018-04-14 22:48:30 -05:00
|
|
|
proxy_pass http://${SHIPPING_HOST}:8080/;
|
2018-01-12 17:26:25 +00:00
|
|
|
}
|
|
|
|
|
2018-01-25 17:42:38 +00:00
|
|
|
location /api/payment/ {
|
2018-04-14 22:48:30 -05:00
|
|
|
proxy_pass http://${PAYMENT_HOST}:8080/;
|
2018-01-25 17:42:38 +00:00
|
|
|
}
|
|
|
|
|
2018-08-21 14:47:19 +01:00
|
|
|
location /api/ratings/ {
|
|
|
|
proxy_pass http://${RATINGS_HOST}:80/;
|
|
|
|
}
|
|
|
|
|
2018-01-10 16:31:49 +00:00
|
|
|
location /nginx_status {
|
|
|
|
stub_status on;
|
|
|
|
access_log off;
|
|
|
|
}
|
|
|
|
}
|