infra: format code
This commit is contained in:
parent
d4744976e2
commit
8b41ded3a6
4 changed files with 43 additions and 37 deletions
|
@ -12,7 +12,10 @@ in
|
|||
{
|
||||
systemd.services.alisa-backend = {
|
||||
enable = true;
|
||||
after = [ "network.target" "postgresql.service" ];
|
||||
after = [
|
||||
"network.target"
|
||||
"postgresql.service"
|
||||
];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
description = "Alisa Backend API Server";
|
||||
environment = {
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
self,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{ self, config, ... }:
|
||||
|
||||
{
|
||||
services.nginx = {
|
||||
|
@ -16,7 +12,11 @@
|
|||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations = {
|
||||
"/".root = "${self.legacyPackages.${config.nixpkgs.hostPlatform.system}.web.override { withBackendUrl = "https://clan-war.net/api/v1";}}/";
|
||||
"/".root = "${
|
||||
self.legacyPackages.${config.nixpkgs.hostPlatform.system}.web.override {
|
||||
withBackendUrl = "https://clan-war.net/api/v1";
|
||||
}
|
||||
}/";
|
||||
"/api".proxyPass = "http://localhost:8080/api";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
lib,
|
||||
pnpm,
|
||||
nodejs,
|
||||
withBackendUrl ? ""
|
||||
withBackendUrl ? "",
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue