mirror of
https://github.com/XTLS/Xray-examples.git
synced 2025-06-28 21:26:06 +08:00
25 lines
428 B
Nginx Configuration File
25 lines
428 B
Nginx Configuration File
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;
|
|
}
|
|
}
|
|
}
|