瀏覽代碼

[photoview] Add an nginx location file

Colin Powell 3 年之前
父節點
當前提交
ea44fd0c6c
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      ansible/roles/photoview/files/nginx.conf

+ 11 - 0
ansible/roles/photoview/files/nginx.conf

@@ -0,0 +1,11 @@
+location /api/ {
+    proxy_pass http://127.0.0.1:4001/;
+    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+    proxy_set_header Host $host;
+    proxy_redirect off;
+}
+
+location / {
+    root   /usr/local/src/photoview/ui/build;
+    index  index.html index.htm;
+}