change some docs stuff
This commit is contained in:
parent
96cf861849
commit
4f01132822
2 changed files with 16 additions and 21 deletions
|
@ -42,7 +42,6 @@ in {
|
||||||
|
|
||||||
minio = {
|
minio = {
|
||||||
enable = true;
|
enable = true;
|
||||||
browser = false;
|
|
||||||
rootCredentialsFile = config.age.secrets."minioCredentials.age".path;
|
rootCredentialsFile = config.age.secrets."minioCredentials.age".path;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -50,16 +49,12 @@ in {
|
||||||
cfg = config.services.lasuite-docs;
|
cfg = config.services.lasuite-docs;
|
||||||
in ''
|
in ''
|
||||||
handle_errors {
|
handle_errors {
|
||||||
@401 expression {http.error.status_code} == 401
|
rewrite * /{http.error.status_code}
|
||||||
rewrite @401 /401
|
file_server
|
||||||
|
|
||||||
@403 expression {http.error.status_code} == 403
|
|
||||||
rewrite @403 /403
|
|
||||||
|
|
||||||
@404 expression {http.error.status_code} == 404
|
|
||||||
rewrite @404 /404
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
redir /api/v1.0/logout/None /
|
||||||
|
|
||||||
root * ${pkgs.lasuite-docs-frontend}
|
root * ${pkgs.lasuite-docs-frontend}
|
||||||
file_server
|
file_server
|
||||||
|
|
||||||
|
@ -67,7 +62,6 @@ in {
|
||||||
rewrite @uuidDocs /docs/[id]/index.html
|
rewrite @uuidDocs /docs/[id]/index.html
|
||||||
|
|
||||||
reverse_proxy /api/* unix/${socket}
|
reverse_proxy /api/* unix/${socket}
|
||||||
|
|
||||||
reverse_proxy /admin/* unix/${socket}
|
reverse_proxy /admin/* unix/${socket}
|
||||||
|
|
||||||
reverse_proxy /collaboration/ws/* http://localhost:${toString cfg.collaborationServer.port}
|
reverse_proxy /collaboration/ws/* http://localhost:${toString cfg.collaborationServer.port}
|
||||||
|
@ -93,7 +87,8 @@ in {
|
||||||
EnvironmentFile = config.age.secrets."minioCredentials.age".path;
|
EnvironmentFile = config.age.secrets."minioCredentials.age".path;
|
||||||
ExecStart = pkgs.writeShellScript "init-minio" ''
|
ExecStart = pkgs.writeShellScript "init-minio" ''
|
||||||
mc alias set minio ${s3Domain} "$MINIO_ROOT_USER" "$MINIO_ROOT_PASSWORD" --api s3v4
|
mc alias set minio ${s3Domain} "$MINIO_ROOT_USER" "$MINIO_ROOT_PASSWORD" --api s3v4
|
||||||
mc --config-dir "$CONFIG_DIR" mb --ignore-existing minio/lasuite-docs
|
mc mb --ignore-existing minio/lasuite-docs
|
||||||
|
mc anonymous get minio/lasuite-docs
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
20
flake.lock
generated
20
flake.lock
generated
|
@ -1427,11 +1427,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1753487470,
|
"lastModified": 1753538890,
|
||||||
"narHash": "sha256-cUmvWt+y31DtRY6Mi9UQybZhaP/ooh4jqdMLzcN35Hg=",
|
"narHash": "sha256-GadAOR4VJXtYnpunNnjBQqaO2s9BJxD49ui9OmrHdBg=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "957a6c6c97df642866c039ef586d1c52293ad552",
|
"rev": "a86c8e2b26a6d12eaf6fd74f79111a08fc2768d6",
|
||||||
"revCount": 41,
|
"revCount": 42,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.federated.nexus/Henry-Hiles/matrixoidc"
|
"url": "https://git.federated.nexus/Henry-Hiles/matrixoidc"
|
||||||
},
|
},
|
||||||
|
@ -2244,11 +2244,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1753250450,
|
"lastModified": 1753429684,
|
||||||
"narHash": "sha256-i+CQV2rPmP8wHxj0aq4siYyohHwVlsh40kV89f3nw1s=",
|
"narHash": "sha256-9h7+4/53cSfQ/uA3pSvCaBepmZaz/dLlLVJnbQ+SJjk=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "fc02ee70efb805d3b2865908a13ddd4474557ecf",
|
"rev": "7fd36ee82c0275fb545775cc5e4d30542899511d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -2505,11 +2505,11 @@
|
||||||
"utils": "utils"
|
"utils": "utils"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1753433875,
|
"lastModified": 1753515282,
|
||||||
"narHash": "sha256-kwrggwH9zeiLVonO9aA2Wngl/ZAL/1VbJxbBKgyfbXo=",
|
"narHash": "sha256-vSihpZor6HFdbUU0pX8MTB1ZLM+XFmhDsFF7S35iIT8=",
|
||||||
"owner": "wamserma",
|
"owner": "wamserma",
|
||||||
"repo": "flake-programs-sqlite",
|
"repo": "flake-programs-sqlite",
|
||||||
"rev": "79677d017c844fec0511558ee4f96291c85a946e",
|
"rev": "e2a9f0bb925432018eb1d4bbbd40b1377e42422c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue