-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
fastapi-dls: init #358647
base: master
Are you sure you want to change the base?
fastapi-dls: init #358647
Conversation
352e7ab
to
6e44fa0
Compare
badafa6
to
5d7b3d4
Compare
Just found some issue with license acquisition. |
I'm currently getting 400 error when running it on NixOS:
I tried various method to dump the bad request body but none of them worked. At this point I'm stuck. |
61022b8
to
e07d73b
Compare
@mrzenc helped me with the issue, and his patch is now included in the PR. If you can leave a review that'd very helpful. The service is working again on my computer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The diff looks good to me. However, I lack experience on NixOS module reviewing and would advise for another committer to take a look.
##### implementation | ||
config = | ||
let | ||
envFile = pkgs.writeText "fastapi-dls.env" '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not extensible. Also we should probably strip the commented things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The content (including comments) here is based on the upstream env file and is how the upstream configure the service.
These are just environment variables though, so we can definitely use different implementation. Do you have an example in mind?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
systemd.services.fastapi-dls.environment
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switched to systemd.services.fastapi-dls.environment
but I'm not sure how this is more extensible.
|
||
listenPort = lib.mkOption { | ||
type = lib.types.port; | ||
default = 443; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a bad default. We should use something like 5000 or whatever upstream uses except 443
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e07d73b
to
92c8688
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/fetchgit-hub-add-tag-argument/56710/5 |
92c8688
to
8a6a7f5
Compare
8a6a7f5
to
ad71a3a
Compare
Add fastapi-dls and associated NixOS module.
fastapi-dls is an open source implementation of NVIDIA Delegated License Service (DLS).
I'm dogfooding this PR on my own machine currently.
Project homepage: https://git.collinwebdesigns.de/oscar.krause/fastapi-dls
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.