mirror of
https://github.com/alireza0/x-ui.git
synced 2026-03-14 05:23:09 +00:00
update config
This commit is contained in:
@@ -43,11 +43,13 @@
|
|||||||
},
|
},
|
||||||
"outbounds": [
|
"outbounds": [
|
||||||
{
|
{
|
||||||
"tag": "direct",
|
|
||||||
"protocol": "freedom",
|
"protocol": "freedom",
|
||||||
"settings": {
|
"settings": {
|
||||||
"domainStrategy": "UseIP"
|
"domainStrategy": "UseIP",
|
||||||
}
|
"noises": [],
|
||||||
|
"redirect": ""
|
||||||
|
},
|
||||||
|
"tag": "direct"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"tag": "block",
|
"tag": "block",
|
||||||
|
|||||||
@@ -1,34 +1,44 @@
|
|||||||
{
|
{
|
||||||
"log": {
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"api": {
|
"api": {
|
||||||
"tag": "api",
|
"services": [
|
||||||
"services": ["HandlerService", "LoggerService", "StatsService"]
|
"HandlerService",
|
||||||
|
"LoggerService",
|
||||||
|
"StatsService"
|
||||||
|
],
|
||||||
|
"tag": "api"
|
||||||
},
|
},
|
||||||
"inbounds": [
|
"inbounds": [
|
||||||
{
|
{
|
||||||
"tag": "api",
|
|
||||||
"listen": "127.0.0.1",
|
"listen": "127.0.0.1",
|
||||||
"port": 62789,
|
"port": 62789,
|
||||||
"protocol": "dokodemo-door",
|
"protocol": "dokodemo-door",
|
||||||
"settings": {
|
"settings": {
|
||||||
"address": "127.0.0.1"
|
"address": "127.0.0.1"
|
||||||
}
|
},
|
||||||
|
"tag": "api"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"log": {
|
||||||
|
"access": "none",
|
||||||
|
"dnsLog": false,
|
||||||
|
"error": "",
|
||||||
|
"loglevel": "warning",
|
||||||
|
"maskAddress": ""
|
||||||
|
},
|
||||||
"outbounds": [
|
"outbounds": [
|
||||||
{
|
{
|
||||||
"tag": "direct",
|
|
||||||
"protocol": "freedom",
|
"protocol": "freedom",
|
||||||
"settings": {
|
"settings": {
|
||||||
"domainStrategy": "UseIP"
|
"domainStrategy": "UseIP",
|
||||||
}
|
"noises": [],
|
||||||
|
"redirect": ""
|
||||||
|
},
|
||||||
|
"tag": "direct"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"tag": "blocked",
|
|
||||||
"protocol": "blackhole",
|
"protocol": "blackhole",
|
||||||
"settings": {}
|
"settings": {},
|
||||||
|
"tag": "blocked"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"policy": {
|
"policy": {
|
||||||
@@ -47,19 +57,25 @@
|
|||||||
"domainStrategy": "AsIs",
|
"domainStrategy": "AsIs",
|
||||||
"rules": [
|
"rules": [
|
||||||
{
|
{
|
||||||
"type": "field",
|
"inboundTag": [
|
||||||
"inboundTag": ["api"],
|
"api"
|
||||||
"outboundTag": "api"
|
],
|
||||||
|
"outboundTag": "api",
|
||||||
|
"type": "field"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "field",
|
"ip": [
|
||||||
|
"geoip:private"
|
||||||
|
],
|
||||||
"outboundTag": "blocked",
|
"outboundTag": "blocked",
|
||||||
"ip": ["geoip:private"]
|
"type": "field"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "field",
|
|
||||||
"outboundTag": "blocked",
|
"outboundTag": "blocked",
|
||||||
"protocol": ["bittorrent"]
|
"protocol": [
|
||||||
|
"bittorrent"
|
||||||
|
],
|
||||||
|
"type": "field"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user