newturok commited on
Commit
c588f68
·
verified ·
1 Parent(s): 70221ee

Upload default

Browse files
Files changed (1) hide show
  1. default +27 -0
default ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ server {
2
+ listen 8080;
3
+
4
+ location / {
5
+ proxy_pass http://localhost:8188;
6
+ proxy_set_header Host $host;
7
+ proxy_set_header X-Real-IP $remote_addr;
8
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
9
+ proxy_set_header X-Forwarded-Proto $scheme;
10
+ client_max_body_size 100M;
11
+ }
12
+
13
+ location /output {
14
+ alias /workspace/ComfyUI/output; # Serve files from this directory
15
+ autoindex off; # Disable directory listing
16
+
17
+ # Allow access only to PNG files
18
+ location ~* \.(png)$ {
19
+ try_files $uri =404; # Return 404 if the file doesn't exist
20
+ }
21
+
22
+ # Deny access to all other file types
23
+ location /output/ {
24
+ deny all; # Deny access to all files not matching the PNG pattern
25
+ }
26
+ }
27
+ }