Create nginx.conf

This commit is contained in:
chika0801 2022-02-12 00:48:32 +08:00 committed by GitHub
parent af5a55bcd6
commit c950f0e13a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,24 @@
user nginx;
worker_processes auto;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
access_log off;
error_log stderr crit;
server {
listen 127.0.0.1:8001;
listen 127.0.0.1:8002 http2;
location / {
resolver 1.1.1.1;
set $example https://github.com/XTLS;
proxy_pass $example;
proxy_ssl_server_name on;
}
}
}