-
-
Notifications
You must be signed in to change notification settings - Fork 511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] Advance Inbounds #1264
Comments
I think you want something like this #1206 |
This is not a big deal as we can set x-ui to overwrite those specific parameters like inbound tags. I already made a python script to do that. We can make a new api which only gets outbound configs. OR We can make controls at front-end. It works great but any new inbound settings under x-ui front will undo the changes. |
We are talking about X-ui front will make payload so it can already change x-ui parameters before sending. It is different from json section in Outbound manager. Outbound manager sends the exact json we put. |
Hello @X-Oracle , As you mentioned, in outbounds we have no databse related records per outbound and they are stored in a static json text in one database record ( as a part of xray's config template ). |
HI, @alireza0, Thanks for the reply.
I already know. what I meant is not related to database at all cause all of the important parameters are already in database table. the part which is important is Xray inbound is like bellow: {
"inbounds": [
{
"listen": "127.0.0.1",
"port": 1080,
"protocol": "协议名称",
"settings": {},
"streamSettings": {},
"tag": "标识",
"sniffing": {
"enabled": true,
"destOverride": ["http", "tls"]
},
"allocate": {
"strategy": "always",
"refresh": 5,
"concurrency": 3
}
}
]
} X-UI already covers most of inbound keys except 1- we get xray part through
this is not a problem as all of above changes is related to front and backend doesn't need to be changed so
As I didn't see other x-ui backend code. I don't know what configs are being used by X-ui. but we can configure x-ui to post fill the keys which are important and may cause x-ui to fail to run (not the core). For example, you told me before that inbound tag cannot be custom because some x-ui functions is based on that, so after user hit the save button, we can overwrite it before sending; in that case no matter what user fill or even not fill. As for misconfiguration in x-ray part. it is users' responsibility to use Json tab (we are not enforcing Json tab just like outbound manager). Think about it in your free time I look forward for your reply about this, Good Luck, |
Please take a look at outbound's modal. When you change sth which is not supported by modal, after pushing save button it will be converted by javascript to only supported paramethers. |
In my opinion this mechanism is better and that's just what I did in my python script.
The problem with official documentation is that only a few x-ray contributors and not the ones implanting the futures are writing it (seriously, why they would take their time to implant a feature and not going to write any guide on how to use it.) so it is not fully covered. |
Hi @alireza0,
As you know Xray-core has a lot of options and a lot of them are not too handy for normal users, but for power users who want to use Custom configs it is a challenge to add new custom configurations, right now we can already add custom inbound in Xray advanced settings, but we will sacrifice X-UI user management,
I have been thinking of what ways we can configure this ...
we can add custom configs in
Xray Advanced settings
and inX-UI inbound settings
we can have an option to add and manage users of selectedinbound tag
.I recently got an idea from adding some outbounds through the panel new outbound manager. we can have both
form
andjson
system in inbounds too.Anyway, I hope you got the point.
Good Luck.
The text was updated successfully, but these errors were encountered: