Explorar o código

[photoview] Add an nginx location file

Colin Powell %!s(int64=3) %!d(string=hai) anos
pai
achega
ea44fd0c6c
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  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;
+}