Spaces:
Runtime error
Runtime error
fix nginx
Browse files- Dockerfile +2 -2
- nginx.conf +10 -6
- requirements.txt +0 -4
Dockerfile
CHANGED
|
@@ -32,7 +32,7 @@ EXPOSE 8080
|
|
| 32 |
USER 1000
|
| 33 |
|
| 34 |
# nerfstudio commands here
|
| 35 |
-
RUN ["ns-download-data", "nerfstudio", "--capture-name=
|
| 36 |
|
| 37 |
# nerfstudio training with nginx to server the viewer
|
| 38 |
-
CMD ["/bin/sh", "-c","ns-train nerfacto --data data/nerfstudio/
|
|
|
|
| 32 |
USER 1000
|
| 33 |
|
| 34 |
# nerfstudio commands here
|
| 35 |
+
RUN ["ns-download-data", "nerfstudio", "--capture-name=redwoods2"]
|
| 36 |
|
| 37 |
# nerfstudio training with nginx to server the viewer
|
| 38 |
+
CMD ["/bin/sh", "-c","ns-train nerfacto --data data/nerfstudio/redwoods2 & nginx -g 'daemon off;'"]
|
nginx.conf
CHANGED
|
@@ -6,12 +6,16 @@ server {
|
|
| 6 |
#access_log /var/log/nginx/host.access.log main;
|
| 7 |
|
| 8 |
location /server {
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
}
|
| 16 |
location / {
|
| 17 |
root /usr/share/nginx/html;
|
|
|
|
| 6 |
#access_log /var/log/nginx/host.access.log main;
|
| 7 |
|
| 8 |
location /server {
|
| 9 |
+
proxy_pass http://localhost:7007;
|
| 10 |
+
proxy_http_version 1.1;
|
| 11 |
+
proxy_set_header Upgrade $http_upgrade;
|
| 12 |
+
proxy_set_header Connection 'upgrade';
|
| 13 |
+
proxy_set_header Host $host;
|
| 14 |
+
proxy_set_header X-Real-IP $remote_addr;
|
| 15 |
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
| 16 |
+
proxy_cache_bypass $http_upgrade;
|
| 17 |
+
proxy_read_timeout 86400;
|
| 18 |
+
proxy_redirect off;
|
| 19 |
}
|
| 20 |
location / {
|
| 21 |
root /usr/share/nginx/html;
|
requirements.txt
DELETED
|
@@ -1,4 +0,0 @@
|
|
| 1 |
-
--extra-index-url https://download.pytorch.org/whl/cu118
|
| 2 |
-
torch==2.0.1+cu118
|
| 3 |
-
torchvision==0.15.2+cu118
|
| 4 |
-
git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|