mirror of
https://github.com/XTLS/Xray-examples.git
synced 2025-06-28 13:16:06 +08:00
Create nginx.conf
This commit is contained in:
parent
af5a55bcd6
commit
c950f0e13a
24
Trojan-TCP-XTLS/nginx.conf
Normal file
24
Trojan-TCP-XTLS/nginx.conf
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user