Add: porzh.me landing page

This commit is contained in:
DuN0z 2025-09-19 17:40:17 +02:00
parent fe5cd05d60
commit a68fbcf432
8 changed files with 97 additions and 52 deletions

24
flake.lock generated
View file

@ -28,11 +28,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1757997814, "lastModified": 1758119172,
"narHash": "sha256-F+1aoG+3NH4jDDEmhnDUReISyq6kQBBuktTUqCUWSiw=", "narHash": "sha256-LnVuGLf0PJHqqIHroxEzwXS57mjAdHSrXi0iODKbbiU=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "5820376beb804de9acf07debaaff1ac84728b708", "rev": "9f408dc51c8e8216a94379e6356bdadbe8b4fef9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -80,11 +80,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1757810152, "lastModified": 1758070117,
"narHash": "sha256-Vp9K5ol6h0J90jG7Rm4RWZsCB3x7v5VPx588TQ1dkfs=", "narHash": "sha256-uLwwHFCZnT1c3N3biVe/0hCkag2GSrf9+M56+Okf+WY=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9a094440e02a699be5c57453a092a8baf569bdad", "rev": "e9b7f2ff62b35f711568b1f0866243c7c302028d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -96,11 +96,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1757924820, "lastModified": 1758098782,
"narHash": "sha256-to/hwbY9/jsRaejPa5oJmPUFZsJfFCB3WReKhD0+/+E=", "narHash": "sha256-sX+iNoZkgSQsnsCHO6aI7mYh2GqbYDLWMB0iN41i61k=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "aa54acd34af0e86f49d55ea52823031e2da399df", "rev": "5874893c92e656c85dc729e8b570fc38d3c85853",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -116,11 +116,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1758008446, "lastModified": 1758144108,
"narHash": "sha256-n1carH6n9xIARoDzmzZPyxlU2MVEuGAFt2UAvVOACJg=", "narHash": "sha256-fq/Fd89pUrdVcFmw8aNVQoF9UPq7L5gtS/0ioPTUNKg=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "1b8ae8bec68487a61944cfdbfcb67f4aa69ff002", "rev": "47a4f8514d9aecd033d53a84f698a115b3074f2b",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -11,7 +11,6 @@
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
./hardware.nix ./hardware.nix
../../profiles/server-selfhosted.nix ../../profiles/server-selfhosted.nix
../../modules/services/caddy.nix
../../modules/services/forgejo.nix ../../modules/services/forgejo.nix
]; ];

View file

@ -1,34 +0,0 @@
{ pkgs, ...}: {
services.caddy = {
enable = true;
virtualHosts."blog.lomig.me" = {
extraConfig = ''
root * /var/www/lomig
file_server
'';
};
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
systemd.tmpfiles.rules = [
"d /var/www/lomig 0755 lomig users -"
];
systemd.services.hugo-blog-build = {
description = "Build Hugo Blog";
after = [ "network.target" ];
serviceConfig = {
Type = "oneshot";
ExecStart = /home/lomig/scripts/blog-sync-and-build.sh;
User = "lomig";
};
};
systemd.timers.hugo-blog-build = {
description = "Daily Hugo Blog Build";
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = "daily 06:00";
Persistent = true;
};
};
}

View file

@ -21,9 +21,9 @@
}; };
settings = { settings = {
server = { server = {
DOMAIN = "git.lomig.me"; DOMAIN = "govel.porzh.me";
ROOT_URL = "https://git.lomig.me/"; ROOT_URL = "https://govel.porzh.me/";
SSH_DOMAIN = "git.lomig.me"; SSH_DOMAIN = "govel.porzh.me";
HTTP_PORT = 3000; HTTP_PORT = 3000;
SSH_PORT = 22; SSH_PORT = 22;
START_SSH_SERVER = false; START_SSH_SERVER = false;
@ -45,10 +45,10 @@
services.openssh.enable = true; services.openssh.enable = true;
networking.firewall.interfaces."eth0".allowedTCPPorts = [ 22 ]; # pour admin networking.firewall.interfaces."eth0".allowedTCPPorts = [ 22 ]; # pour admin
# --- Caddy pour git.lomig.me --- # --- Caddy pour govel.porzh.me ---
services.caddy = { services.caddy = {
enable = true; enable = true;
virtualHosts."git.lomig.me" = { virtualHosts."govel.porzh.me" = {
extraConfig = '' extraConfig = ''
reverse_proxy localhost:3000 reverse_proxy localhost:3000
''; '';

View file

@ -0,0 +1,28 @@
{ config, pkgs, ... }:
let
porzhSite = pkgs.stdenv.mkDerivation {
pname = "porzh-site";
version = "1.0";
src = ./porzh.me; # le dossier avec ton index.html, image, etc.
installPhase = ''
mkdir -p $out
cp -r * $out/
'';
};
in {
services.caddy = {
enable = true;
virtualHosts = {
"porzh.me" = {
serverAliases = [ "www.porzh.me" ];
extraConfig = ''
root * ${porzhSite}
file_server
'';
};
};
};
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 KiB

View file

@ -0,0 +1,51 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Page centrée</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;1,400&display=swap" rel="stylesheet">
<style>
body {
margin: 0;
height: 100vh;
display: flex;
flex-direction: column; /* Aligne les éléments verticalement */
justify-content: center; /* Centre verticalement */
align-items: center; /* Centre horizontalement */
background-color: #fff;
font-family: 'Merriweather', serif;
}
img {
max-width: 30%;
height: auto;
}
#title {
font-size: 96px;
margin-top: 20px;
}
h2 {
font-size : 36px;
margin-top: -40px;
}
li {
display: inline;
}
a {
color: black;
}
</style>
</head>
<body>
<img src="./ancre.png" alt="Ancre">
<h1 id="title">porzh.me</h1>
<h2 id="subtitle">Ma porzh stag</h2>
<ul id="services">
<li><a href="https://govel.porzh.me" target="_blank">govel</a></li> /
<li><a href="#" target="_blank">komeraj</a></li> /
<li><a href="#" target="_blank"></li>
</ul>
</body>
</html>

View file

@ -4,6 +4,7 @@
../modules/common/base.nix ../modules/common/base.nix
../modules/common/networking.nix ../modules/common/networking.nix
../modules/services/printing.nix ../modules/services/printing.nix
../modules/sites/porzh.me.nix
]; ];
services.openssh.enable = true; services.openssh.enable = true;