Sync with development-SDXPINN
This commit is contained in:
65
unused/nginx.conf
Normal file
65
unused/nginx.conf
Normal file
@@ -0,0 +1,65 @@
|
||||
user root;
|
||||
worker_processes auto;
|
||||
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
sendfile on;
|
||||
keepalive_timeout 5;
|
||||
|
||||
client_body_buffer_size 10K;
|
||||
client_header_buffer_size 1k;
|
||||
client_max_body_size 1G;
|
||||
large_client_header_buffers 2 2k;
|
||||
|
||||
disable_symlinks off;
|
||||
root /www;
|
||||
|
||||
access_log off;
|
||||
|
||||
index index.html;
|
||||
|
||||
# Main Server Block
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen 443 ssl default_server;
|
||||
root /www;
|
||||
|
||||
# SSL Configuration
|
||||
ssl_certificate /etc/nginx/conf.d/_lan.crt;
|
||||
ssl_certificate_key /etc/nginx/conf.d/_lan.key;
|
||||
|
||||
# Index File
|
||||
index index.html;
|
||||
|
||||
# Serve static files from /www
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
# Serve LuCI uHTTPd content
|
||||
location /cgi-bin/ {
|
||||
disable_symlinks off; # Allow symbolic links to be followed
|
||||
proxy_pass http://127.0.0.1:1000;
|
||||
}
|
||||
|
||||
location /ubus/ {
|
||||
disable_symlinks off; # Allow symbolic links to be followed
|
||||
proxy_pass http://127.0.0.1:1000;
|
||||
}
|
||||
|
||||
location /luci-static/ {
|
||||
disable_symlinks off; # Allow symbolic links to be followed
|
||||
proxy_pass http://127.0.0.1:1000;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user