Commit
·
2dc0cba
1
Parent(s):
08a6224
setup proxy
Browse files- Dockerfile +7 -0
- nginx.conf +18 -0
Dockerfile
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM nginx:alpine
|
| 2 |
+
|
| 3 |
+
COPY nginx.conf /etc/nginx/nginx.conf
|
| 4 |
+
|
| 5 |
+
EXPOSE 7860
|
| 6 |
+
|
| 7 |
+
CMD ["nginx", "-g", "daemon off;"]
|
nginx.conf
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
events {}
|
| 2 |
+
|
| 3 |
+
http {
|
| 4 |
+
server {
|
| 5 |
+
listen 7860;
|
| 6 |
+
|
| 7 |
+
location / {
|
| 8 |
+
proxy_pass https://durinn-concept-explorer.azurewebsites.net/;
|
| 9 |
+
proxy_set_header Host $host;
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
location /api/ {
|
| 13 |
+
proxy_pass https://durinn-concept-explorer.azurewebsites.net/api/;
|
| 14 |
+
proxy_set_header Host $host;
|
| 15 |
+
proxy_set_header X-Forwarded-For $remote_addr;
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
}
|