feat: adding the portefolio running on nginx
This commit is contained in:
parent
9f028e8863
commit
2961ae7382
1 changed files with 9 additions and 13 deletions
|
|
@ -14,19 +14,14 @@ in
|
||||||
nodejs
|
nodejs
|
||||||
pnpm
|
pnpm
|
||||||
];
|
];
|
||||||
users = {
|
|
||||||
groups.web_portefolio = {
|
|
||||||
name = "web_portefolio";
|
|
||||||
};
|
|
||||||
users.web_portefolio = {
|
|
||||||
description = "Utilisateur pour le bot BDE";
|
|
||||||
group = "web_portefolio";
|
|
||||||
home = "/opt/portefolio/";
|
|
||||||
isSystemUser = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
|
virtualHosts."parodi.pro" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/" = {
|
||||||
|
return = "404";
|
||||||
|
};
|
||||||
|
};
|
||||||
virtualHosts."raphael.parodi.pro" = {
|
virtualHosts."raphael.parodi.pro" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
@ -41,6 +36,7 @@ in
|
||||||
};
|
};
|
||||||
security.acme = {
|
security.acme = {
|
||||||
certs = {
|
certs = {
|
||||||
|
"parodi.pro" = {};
|
||||||
"raphael.parodi.pro" = {};
|
"raphael.parodi.pro" = {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue