mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
[CLOUDFLARE PAGES] kittywit.ch
This commit is contained in:
parent
c980cd0207
commit
08b0afdf74
6 changed files with 25 additions and 78 deletions
|
|
@ -61,15 +61,6 @@ resource "cloudflare_record" "terraform_managed_resource_1125359cc05a16a0950fd25
|
|||
zone_id = "7e44e5503a0bba73d2025d0a9679205e"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_92ffaf7e0cfd9bb265a01448160abbf5" {
|
||||
name = "kittywit.ch"
|
||||
proxied = false
|
||||
ttl = 3600
|
||||
type = "CNAME"
|
||||
value = "yukari.gensokyo.zone"
|
||||
zone_id = "7e44e5503a0bba73d2025d0a9679205e"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "terraform_managed_resource_95d39eb707041e694c6b7f03cbae6b11" {
|
||||
name = "vault"
|
||||
proxied = false
|
||||
|
|
|
|||
24
cloudflare-kittywitch-pages.tf
Normal file
24
cloudflare-kittywitch-pages.tf
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
resource "cloudflare_pages_project" "kittywitch" {
|
||||
account_id = "0467b993b65d8fd4a53fe24ed2fbb2a1"
|
||||
name = "kittywitch"
|
||||
production_branch = "main"
|
||||
|
||||
source {
|
||||
type = "github"
|
||||
config {
|
||||
owner = "kittywitch"
|
||||
repo_name = "kittywit.ch"
|
||||
production_branch = "main"
|
||||
deployments_enabled = true
|
||||
pr_comments_enabled = false
|
||||
production_deployment_enabled = true
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
resource "cloudflare_pages_domain" "kittywitch_root" {
|
||||
account_id = "0467b993b65d8fd4a53fe24ed2fbb2a1"
|
||||
project_name = "kittywitch"
|
||||
domain = "kittywit.ch"
|
||||
}
|
||||
46
main.go
46
main.go
|
|
@ -1,46 +0,0 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
"gopkg.in/yaml.v3"
|
||||
"kittywitch/iac"
|
||||
"os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
store := iac.KatConfig{}
|
||||
|
||||
configFile, err := os.ReadFile("config.yaml")
|
||||
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
if err := yaml.Unmarshal(configFile, &store); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
for _, zone := range store.Zones {
|
||||
err = zone.Handle(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
for name, machine := range store.Machines {
|
||||
err = machine.Handle(ctx, name)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
err = iac.InskipPage(ctx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return err
|
||||
})
|
||||
}
|
||||
|
|
@ -12,10 +12,7 @@ with pkgs; let
|
|||
[
|
||||
fd # fd, better fine!
|
||||
ripgrep # rg, better grep!
|
||||
go # Required for pulumi
|
||||
gopls
|
||||
sops
|
||||
pulumi-bin # Infrastructure as code
|
||||
deadnix # dead-code scanner
|
||||
alejandra # code formatter
|
||||
statix # anti-pattern finder
|
||||
|
|
@ -26,6 +23,7 @@ with pkgs; let
|
|||
''))
|
||||
repo.darwinConfigurations);
|
||||
shellHook = ''
|
||||
sops
|
||||
echo -e "\e[39m\e[1m$USER@$REPO_HOSTNAME - \e[35m''$(realpath --relative-to=../ ./nixos/)\e[0m"
|
||||
echo -e "\e[35mRunning alejandra\e[0m"
|
||||
alejandra -cq $(fd -e nix)
|
||||
|
|
|
|||
|
|
@ -25,16 +25,6 @@ _: let
|
|||
environment.systemPackages = with pkgs; [
|
||||
fd # fd, better fine!
|
||||
ripgrep # rg, better grep!
|
||||
go # Required for pulumi
|
||||
gotools
|
||||
go-outline
|
||||
gocode
|
||||
gopkgs
|
||||
gocode-gomod
|
||||
godef
|
||||
golint
|
||||
gopls
|
||||
pulumi-bin # Infrastructure as code
|
||||
deadnix # dead-code scanner
|
||||
alejandra # code formatter
|
||||
statix # anti-pattern finder
|
||||
|
|
|
|||
|
|
@ -16,16 +16,6 @@ _: let
|
|||
environment.systemPackages = with pkgs; [
|
||||
fd # fd, better fine!
|
||||
ripgrep # rg, better grep!
|
||||
go # Required for pulumi
|
||||
gotools
|
||||
go-outline
|
||||
gocode
|
||||
gopkgs
|
||||
gocode-gomod
|
||||
godef
|
||||
golint
|
||||
gopls
|
||||
pulumi-bin # Infrastructure as code
|
||||
deadnix # dead-code scanner
|
||||
alejandra # code formatter
|
||||
statix # anti-pattern finder
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue