forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nixos/immich: change default port to 2283
This was always upstream's default but they also change the internal port, i.e. behind the reverse proxy, to 2283 in immich-app/immich#13185.
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,24 +26,24 @@ import ../make-test-python.nix ( | |
machine.wait_for_unit("immich-server.service") | ||
machine.wait_for_open_port(3001) # Server | ||
machine.wait_for_open_port(2283) # Server | ||
machine.wait_for_open_port(3003) # Machine learning | ||
machine.succeed("curl --fail http://localhost:3001/") | ||
machine.succeed("curl --fail http://localhost:2283/") | ||
machine.succeed(""" | ||
curl -H 'Content-Type: application/json' --data '{ "email": "[email protected]", "name": "Admin", "password": "admin" }' -X POST http://localhost:3001/api/auth/admin-sign-up | ||
curl -H 'Content-Type: application/json' --data '{ "email": "[email protected]", "name": "Admin", "password": "admin" }' -X POST http://localhost:2283/api/auth/admin-sign-up | ||
""") | ||
res = machine.succeed(""" | ||
curl -H 'Content-Type: application/json' --data '{ "email": "[email protected]", "password": "admin" }' -X POST http://localhost:3001/api/auth/login | ||
curl -H 'Content-Type: application/json' --data '{ "email": "[email protected]", "password": "admin" }' -X POST http://localhost:2283/api/auth/login | ||
""") | ||
token = json.loads(res)['accessToken'] | ||
res = machine.succeed(""" | ||
curl -H 'Content-Type: application/json' -H 'Cookie: immich_access_token=%s' --data '{ "name": "API Key", "permissions": ["all"] }' -X POST http://localhost:3001/api/api-keys | ||
curl -H 'Content-Type: application/json' -H 'Cookie: immich_access_token=%s' --data '{ "name": "API Key", "permissions": ["all"] }' -X POST http://localhost:2283/api/api-keys | ||
""" % token) | ||
key = json.loads(res)['secret'] | ||
machine.succeed(f"immich login http://localhost:3001/api {key}") | ||
machine.succeed(f"immich login http://localhost:2283/api {key}") | ||
res = machine.succeed("immich server-info") | ||
print(res) | ||
''; | ||
|