BoltConn icon indicating copy to clipboard operation
BoltConn copied to clipboard

[Docs] Add documentations for configurations

Open anoduck opened this issue 1 year ago • 8 comments

I wanted to go ahead and get this to you.

  1. There are still sections that need to be written up.
  2. I was considering adding a tiny primer on yaml structure.
  3. Overall, it could be condensed to a much smaller size for brevity.

anoduck avatar Aug 16 '24 10:08 anoduck

Thanks for this PR! I'm a little busy these few days, so I will gradually review and improve these docs. Feel free to let me know if you have any concerns.

XOR-op avatar Aug 18 '24 08:08 XOR-op

Thanks for this PR! I'm a little busy these few days, so I will gradually review and improve these docs. Feel free to let me know if you have any concerns.

Still WIP.

Not included in push:

  • Redesigned the index page with logo in ASCII
  • Rewrote "badass" intro for BoltConn index page
  • wrote another page on rule providers.

I haven't even ran spellcheck yet.

anoduck avatar Aug 18 '24 10:08 anoduck

Still WIP.

I have converted this PR into draft. You can convert it back when it's done.

Redesigned the index page with logo in ASCII

Personally speaking, I don't think we need to add logos in documentations. My taste is to make them simple, clear and informative. But still thanks for your art!

By the way, I would suggest to use an email linked to GitHub (or the users.noreply.github.com address) to commit these changes. Otherwise, I'm afraid GitHub cannot correctly credit your contribution. You can edit the previous commit and force-push them.

XOR-op avatar Aug 18 '24 14:08 XOR-op

@XOR-op I will look into why

Still WIP.

I have converted this PR into draft. You can convert it back when it's done.

Redesigned the index page with logo in ASCII

Personally speaking, I don't think we need to add logos in documentations. My taste is to make them simple, clear and informative. But still thanks for your art!

I just used rsvg-convert to convert the SVG to PNG, and then used ascii-image-converter to convert your logo from PNG to ascii. Creative investment was nil. It turned out better than many logos do, and for some reason I am encountering difficulty attempting to recreate it. The intent was for the index page of the docs to replicate the appearance of the README.md.

By the way, I would suggest to use an email linked to GitHub (or the users.noreply.github.com address) to commit these changes. Otherwise, I'm afraid GitHub cannot correctly credit your contribution. You can edit the previous commit and force-push them.

Is this what you are referring to? git_email_settings It says it is set to private.

Regardless, I was going to do a write-up in my git wiki about BoltConn anyway, I just figured I could kill two birds with one stone.

anoduck avatar Aug 18 '24 23:08 anoduck

I just used rsvg-convert to convert the SVG to PNG, and then used ascii-image-converter to convert your logo from PNG to ascii. Creative investment was nil. It turned out better than many logos do, and for some reason I am encountering difficulty attempting to recreate it. The intent was for the index page of the docs to replicate the appearance of the README.md.

That makes sense to me. Thanks.

Is this what you are referring to?

Yes. And keeping your email private means you don't need to use your real email address for git config user.email. However, a users.noreply.github.com address is needed for GitHub to attribute contributions correctly. Your current configured email is ended with users.noreply.gitgud.io.

Regardless, I was going to do a write-up in my git wiki about BoltConn anyway, I just figured I could kill two birds with one stone.

I will also check that and thanks again for your help.

XOR-op avatar Aug 18 '24 23:08 XOR-op

Light bulb.

anoduck avatar Aug 20 '24 06:08 anoduck

@XOR-op Been working on other stuff. I did a cleanup job on docs and condensed it down significantly. Removed a lot of fluff.

I have no idea how rules are supposed to work. I have a base idea, but you kinda lost me there. Intercepts was the other section I completely became lost in.

anoduck avatar Sep 22 '24 23:09 anoduck

@anoduck Thanks for your work! From a high level perspective, the traffic dispatcher compare the connection info with each rule sequentially. The criterion can be the domain name of the servers, the process initiating the connection, where BoltConn gets the connection or other specific cases. As for the interception, the rule matching process is identical expect the fallback matching in interception is skipping. Then the interception part will execute all of the rewrite functions. I may also write some documentations for these parts if I find time next month.

XOR-op avatar Sep 24 '24 18:09 XOR-op