RehanRaza | 38c1f88 | 2021-01-19 13:39:59 +0100 | [diff] [blame] | 1 | events{} |
| 2 | |
| 3 | http { |
| 4 | include /etc/nginx/mime.types; |
| 5 | |
| 6 | upstream backend { |
| 7 | server nonrtric-gateway:9090; |
| 8 | } |
| 9 | |
| 10 | server { |
| 11 | listen 8080; |
| 12 | server_name localhost; |
| 13 | root /usr/share/nginx/html; |
| 14 | index index.html; |
RehanRaza | e838dbd | 2021-02-02 11:24:34 +0100 | [diff] [blame] | 15 | location /a1-policy/v2/ { |
RehanRaza | 38c1f88 | 2021-01-19 13:39:59 +0100 | [diff] [blame] | 16 | proxy_pass http://backend; |
| 17 | } |
RehanRaza | e838dbd | 2021-02-02 11:24:34 +0100 | [diff] [blame] | 18 | location / { |
| 19 | try_files $uri $uri/ /index.html; |
| 20 | } |
RehanRaza | 38c1f88 | 2021-01-19 13:39:59 +0100 | [diff] [blame] | 21 | } |
| 22 | } |