Skip to content
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

feat: support for custom certificate configuration #592

Merged
merged 12 commits into from
Sep 12, 2024

Conversation

ricOC3
Copy link
Contributor

@ricOC3 ricOC3 commented Sep 9, 2024

This pull request resolves #516.

Thank you for the helpful advice in the issue discussion.

Following suggestions, I have added support for specifying CA certificates of https request through the --cert option and the environment variable TYPST_CERT , as seen in Typst.

I’ve confirmed that the certification error is resolved by either passing the option as follows or setting TYPST_CERT:

{
  "tinymist.typstExtraArgs": ["--cert=path/to/certificates"]
}

As this is my first time working with Rust, I apologize if there are any mistakes in my changes.

I really appreciate your review and guidance.

Copy link
Owner

@Myriad-Dreamin Myriad-Dreamin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonderful! It looks generally great for me and I have left some comments.

As this is my first time working with Rust, I apologize if there are any mistakes in my changes.

I wish you gain and learn more than having this feature and implementing this feature, :). learning valuable things like rust and communication are also important as well. I'm and 'll be delighted to review PRs like this.

crates/tinymist-world/src/lib.rs Outdated Show resolved Hide resolved
crates/tinymist-world/src/lib.rs Outdated Show resolved Hide resolved
crates/tinymist-world/src/lib.rs Outdated Show resolved Hide resolved
crates/tinymist-world/src/lib.rs Outdated Show resolved Hide resolved
crates/tinymist-world/src/lib.rs Outdated Show resolved Hide resolved
@Myriad-Dreamin Myriad-Dreamin merged commit b06447f into Myriad-Dreamin:main Sep 12, 2024
12 checks passed
@Myriad-Dreamin
Copy link
Owner

Thank you!

@ricOC3 ricOC3 deleted the ssl_certificate_option branch September 12, 2024 03:28
@ricOC3 ricOC3 restored the ssl_certificate_option branch September 12, 2024 04:45
Myriad-Dreamin added a commit that referenced this pull request Sep 14, 2024
* feat: support for custom certificate configuration (#592)

* feat: add certificate option

* refactor: move SystemCompilerFeat into tinymist-world

* feat: move HttpRegistry as HttpsRegistry into tinymist-world

* feat: add reading pem file

* feat: update LspUniverseBuilder::build

* feat: fill missing argument of LspUniverseBuilder::build

* chore: update lock file for additional dependencies

* chore:  refine comment for certification

* refactor: simplify by new constructor

* refactor: sort arguments for threaded_http

* refactor: split https.rs from lib.rs in tinymist-world

* feat: provide package view and local documentation (#596)

* feat: move featured components

* feat: provide package view and local documentation

* stage

* fix: compile error by merged commits

* fix: ignore system fonts correctly (#597)

* feat: adapt nightly typst

chore: use mainline typst

fix: `leaf_at` second parameter

fix: build `Engine`

fix: `interpret_mode_at` converage

feat: use my typst

fix: use `typst::trace` to trace

fix: frameitem

fix: new kinds

fix: new scope

fix: lazyhash

fix: result

fix: new SyntaxKinds

fix: utils, lazyhash

chore: remove useless imports

fix: sink

feat: frameitem

fix: export svg with page

fix: deref span

styl:

deps

fix: lazyhash

deps: use my typstyle

fix: enable contenthint with feature

fix: leaf_at side

fix: compile.output

deps

fix: warnings

deps: use new branch name

fix: fix merge error

ci: update ci branch

test: accept new test snap

fix: fix compile

deps: update typst

fix: fix compilation for latest tinymist

fix: fix tests

fix: fix tests

* chore: clean useless imports

---------

Co-authored-by: ricOC3 <100465762+ricOC3@users.noreply.github.com>
Co-authored-by: Myriad-Dreamin <35292584+Myriad-Dreamin@users.noreply.github.com>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for proxy and custom certificate configuration
2 participants