-
Notifications
You must be signed in to change notification settings - Fork 518
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
separate panel xray config from nodes #702
Comments
You can change node ports in docker file with adding ports part |
I'm not talking about port i talk about json config |
It's in plan but I don't think it happen soon |
This could be done by adding XRAY_CONFIGS_DIR and searching for the one named as the node |
in this case we probably have some conflict in showing inbounds in this situation |
We can use something like [node Name]tag so tags will be unique in database |
xray configs can't be specify to a node , it can be use for multi node |
could be resolved by adding a column to "inbounds" table, called node to store id of the node. basically an improved version of immohammad2000's solution. first we parse all node configs from the directory and the main one, all inbounds from the main config are stored in the db with a wildcard for node column; if there are any configs specific to any nodes they're stored with id of the specific node.(foreign key or something) after that there are seh chahar problems I guess:
I think this works & I'd be more than happy if you prove me wrong as it will improve this solution. |
We could do it that way(and it works if there are separate files for some nodes) but It would mix xray config logic with marzban logic too much. |
If we do this every time we change the node xray config, database will generate a new row for inbounds and we're gonna have lots of useless inbounds in the database Also we have a problem in API, how we should send inbound name for each user with node name ? |
as i know it do this already
we can use dictionary for each node : {
"master":[
"inbound_name1",
"inbound_name2"
],
"mode1":[
"inbound_name1",
"inbound_name2"
]
} if we want to do this, some logic must change |
already happens, I checked a user's db yesterday and noticed 170+ rows in inbounds table.
in case there are already enough (other than this) changes breaking the API we could hold the current API intact by adding an env variable |
I don't think I'd do it with this db structure. So backward-compatibility isn't going to happen easily; on the other hand if we do this with the current structure, It'd have to be re-done for scalability. I'm not going to do this twice. |
please separate panel xray config frome nodes
in some situation if you want to use something like xray tunnel on nodes or some dat files in nodes only you have to make so many changes in xray config to make it work in nodes, so separate the configs can help to avoid this issues
we can tabs in core settings section to edit each node.
The text was updated successfully, but these errors were encountered: