1
0
mirror of https://github.com/falk-werner/webfuse-example synced 2024-10-27 20:44:09 +00:00
falk-werner_webfuse-example/etc/nginx/nginx.conf

37 lines
766 B
Nginx Configuration File
Raw Normal View History

2020-04-11 17:15:40 +00:00
user user user;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
server {
listen 8080;
server_name localhost;
root /var/www;
location / {
index index.html;
}
location /webfuse-api {
proxy_pass http://localhost:8081;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
location /cgi-bin/ {
fastcgi_intercept_errors on;
include fcgi.conf;
fastcgi_pass unix:/tmp/fcgi.sock;
}
}
}