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

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 = {
server = {
DOMAIN = "git.lomig.me";
ROOT_URL = "https://git.lomig.me/";
SSH_DOMAIN = "git.lomig.me";
DOMAIN = "govel.porzh.me";
ROOT_URL = "https://govel.porzh.me/";
SSH_DOMAIN = "govel.porzh.me";
HTTP_PORT = 3000;
SSH_PORT = 22;
START_SSH_SERVER = false;
@ -45,10 +45,10 @@
services.openssh.enable = true;
networking.firewall.interfaces."eth0".allowedTCPPorts = [ 22 ]; # pour admin
# --- Caddy pour git.lomig.me ---
# --- Caddy pour govel.porzh.me ---
services.caddy = {
enable = true;
virtualHosts."git.lomig.me" = {
virtualHosts."govel.porzh.me" = {
extraConfig = ''
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>