Compare commits

..

7 commits

Author SHA1 Message Date
1100ac1cae serve local files 2024-07-30 20:58:14 -07:00
316bd3e9a2 flake update 2024-07-30 20:49:46 -07:00
9dced36892 use inet connection instead 2024-07-10 15:27:31 -07:00
0db0cf490b fix permissions 2024-07-10 15:20:55 -07:00
ff70e44994 connect postfix and opendkim 2024-07-10 15:14:45 -07:00
28a9074fa5 add opendkim 2024-07-10 15:02:03 -07:00
084d9077a1 postfix 2024-07-10 14:20:00 -07:00
4 changed files with 35 additions and 6 deletions

View file

@ -4,6 +4,7 @@
./misskey-service.nix ./misskey-service.nix
./heartles-xyz-proxy.nix ./heartles-xyz-proxy.nix
./ogdo.nix ./ogdo.nix
./postfix.nix
]; ];
nix.settings = { nix.settings = {

12
flake.lock generated
View file

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1719838683, "lastModified": 1722221733,
"narHash": "sha256-Zw9rQjHz1ilNIimEXFeVa1ERNRBF8DoXDhLAZq5B4pE=", "narHash": "sha256-sga9SrrPb+pQJxG1ttJfMPheZvDOxApFfwXCFO0H9xw=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d032c1a6dfad4eedec7e35e91986becc699d7d69", "rev": "12bf09802d77264e441f48e25459c10c93eada2e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -24,11 +24,11 @@
}, },
"unstable": { "unstable": {
"locked": { "locked": {
"lastModified": 1719848872, "lastModified": 1722185531,
"narHash": "sha256-H3+EC5cYuq+gQW8y0lSrrDZfH71LB4DAf+TDFyvwCNA=", "narHash": "sha256-veKR07psFoJjINLC8RK4DiLniGGMgF3QMlS4tb74S6k=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "00d80d13810dbfea8ab4ed1009b09100cca86ba8", "rev": "52ec9ac3b12395ad677e8b62106f0b98c1f8569d",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -142,6 +142,11 @@ in {
rewrite .* $path_full break; rewrite .* $path_full break;
proxy_pass https://s3.us-west-1.wasabisys.com; proxy_pass https://s3.us-west-1.wasabisys.com;
''; '';
locations."/localfiles/" = {
root = "/srv/www/localfiles";
tryFiles = "$uri =404";
};
}; };
virtualHosts."egirls.gay" = { virtualHosts."egirls.gay" = {

23
postfix.nix Normal file
View file

@ -0,0 +1,23 @@
{ pkgs, config, ... }:
{
services.postfix = {
enable = true;
enableSubmission = true;
domain = config.networking.fqdn;
config = {
inet_interfaces = "loopback-only";
smtpd_milters = "inet:127.0.0.1:8891";
non_smtpd_milters = "$smtpd_milters";
milter_default_action = "accept";
};
};
services.opendkim = {
enable = true;
selector = "default";
socket = "inet:8891@127.0.0.1";
domains = "csl:${config.networking.fqdn}";
};
}