forked from AIExplorer25/comfyui_wan21_flux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault
More file actions
27 lines (23 loc) · 859 Bytes
/
Copy pathdefault
File metadata and controls
27 lines (23 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
server {
listen 8080;
location / {
proxy_pass http://localhost:8188;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 100M;
}
location /output {
alias /workspace/ComfyUI/output; # Serve files from this directory
autoindex off; # Disable directory listing
# Allow access only to PNG files
location ~* \.(png)$ {
try_files $uri =404; # Return 404 if the file doesn't exist
}
# Deny access to all other file types
location /output/ {
deny all; # Deny access to all files not matching the PNG pattern
}
}
}