feat: add data for localhost
This commit is contained in:
@@ -2,44 +2,38 @@ import { writeFileSync } from "fs"
|
|||||||
|
|
||||||
const mappings = {
|
const mappings = {
|
||||||
// portfolio
|
// portfolio
|
||||||
"silicoflare.dev": "http://sunfire:3000",
|
"blog.silicoflare.dev": "http://localhost:2368",
|
||||||
"www.silicoflare.dev": "http://sunfire:3000",
|
|
||||||
"www.hy-pr.link": "http://sunfire:3000",
|
|
||||||
"blog.silicoflare.dev": "http://sunfire:2368",
|
|
||||||
|
|
||||||
// mini-services
|
// mini-services
|
||||||
"yamtrack.hy-pr.link": "http://sunfire:9002",
|
"yamtrack.hy-pr.link": "http://localhost:9002",
|
||||||
"todo.hy-pr.link": "http://sunfire:9001",
|
"todo.hy-pr.link": "http://localhost:9001",
|
||||||
"affine.hy-pr.link": "http://sunfire:9005",
|
"affine.hy-pr.link": "http://localhost:9005",
|
||||||
"affine-nyx.hy-pr.link": "http://sunfire:9005",
|
"affine-nyx.hy-pr.link": "http://localhost:9005",
|
||||||
"cash.hy-pr.link": "http://sunfire:9006",
|
"cash.hy-pr.link": "http://localhost:9006",
|
||||||
"pin.hy-pr.link": "http://sunfire:9007",
|
"pin.hy-pr.link": "http://localhost:9007",
|
||||||
// "stardew.hy-pr.link": "http://sunfire:9008",
|
// "stardew.hy-pr.link": "http://localhost:9008",
|
||||||
// "keep.hy-pr.link": "http://sunfire:9010",
|
// "keep.hy-pr.link": "http://localhost:9010",
|
||||||
"dl-api.hy-pr.link": "http://sunfire:9011",
|
"dl-api.hy-pr.link": "http://localhost:9011",
|
||||||
"dl.hy-pr.link": "http://sunfire:9012",
|
"dl.hy-pr.link": "http://localhost:9012",
|
||||||
"pics.hy-pr.link": "http://sunfire:9013",
|
"pics.hy-pr.link": "http://localhost:9013",
|
||||||
"books.hy-pr.link": "http://sunfire:9014",
|
"books.hy-pr.link": "http://localhost:9014",
|
||||||
"nametag.hy-pr.link": "http://sunfire:9015",
|
"nametag.hy-pr.link": "http://localhost:9015",
|
||||||
"rss.hy-pr.link": "http://sunfire:8080",
|
"rss.hy-pr.link": "http://localhost:8080",
|
||||||
|
|
||||||
// mega-services
|
// mega-services
|
||||||
"git.hy-pr.link": "http://sunfire:9100",
|
"git.hy-pr.link": "http://localhost:9100",
|
||||||
"ntfy.hy-pr.link": "http://localhost:9101",
|
"ntfy.hy-pr.link": "http://localhost:9101",
|
||||||
"chat.hy-pr.link": "http://sunfire:9102",
|
"chat.hy-pr.link": "http://localhost:9102",
|
||||||
"dav.hy-pr.link": "http://sunfire:9103",
|
"dav.hy-pr.link": "http://localhost:9103",
|
||||||
"files.hy-pr.link": "http://sunfire:9104",
|
"files.hy-pr.link": "http://localhost:9104",
|
||||||
"ytrewq.hy-pr.link": "http://sunfire:9105",
|
"ytrewq.hy-pr.link": "http://localhost:9105",
|
||||||
"pocketbase.hy-pr.link": "http://sunfire:8090",
|
"pocketbase.hy-pr.link": "http://localhost:8090",
|
||||||
"immich.hy-pr.link": "http://sunfire:2283",
|
"immich.hy-pr.link": "http://localhost:2283",
|
||||||
"auth.hy-pr.link": "http://sunfire:1411",
|
"dash.hy-pr.link": "http://localhost:3026",
|
||||||
|
|
||||||
// other
|
// other
|
||||||
"webhook.hy-pr.link": "http://sunfire:8000",
|
"webhook.hy-pr.link": "http://localhost:8000",
|
||||||
"docs.hy-pr.link": "http://sunfire:10000",
|
"docs.hy-pr.link": "http://localhost:10000",
|
||||||
"license.hy-pr.link": "http://sunfire:10001",
|
|
||||||
"type.hy-pr.link": "http://ultramarine:3000",
|
|
||||||
"type-api.hy-pr.link": "http://ultramarine:5005",
|
|
||||||
|
|
||||||
// statics
|
// statics
|
||||||
"chef.hy-pr.link": "http://100.64.0.3:8100",
|
"chef.hy-pr.link": "http://100.64.0.3:8100",
|
||||||
@@ -49,10 +43,29 @@ const mappings = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let caddyfile = `# Caddyfile
|
let caddyfile = `# Caddyfile
|
||||||
http://139.84.140.254 {
|
http://103.126.231.26 {
|
||||||
redir https://silicoflare.dev{uri}
|
redir https://silicoflare.dev{uri}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
https://103.126.231.26 {
|
||||||
|
redir https://silicoflare.dev{uri}
|
||||||
|
}
|
||||||
|
|
||||||
|
bash.hy-pr.link {
|
||||||
|
root * /opt/sites/bash
|
||||||
|
file_server
|
||||||
|
}
|
||||||
|
|
||||||
|
stardew.hy-pr.link {
|
||||||
|
root * /opt/sites/stardew
|
||||||
|
file_server
|
||||||
|
}
|
||||||
|
|
||||||
|
predictor.stardew.hy-pr.link {
|
||||||
|
root * /opt/sites/stardew-predictor
|
||||||
|
file_server
|
||||||
|
}
|
||||||
|
|
||||||
hy-pr.link {
|
hy-pr.link {
|
||||||
redir /silicoflare https://silicoflare.dev
|
redir /silicoflare https://silicoflare.dev
|
||||||
redir /flare https://silicoflare.dev
|
redir /flare https://silicoflare.dev
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
nvim /home/linuxuser/bin/caddie.ts
|
nvim /home/pi/bin/cadedit/caddie.ts
|
||||||
sudo /home/linuxuser/.bun/bin/bun /home/linuxuser/bin/caddie.ts
|
sudo /home/pi/.bun/bin/bun /home/pi/bin/cadedit/caddie.ts
|
||||||
sudo systemctl reload caddy
|
sudo systemctl reload caddy
|
||||||
|
|||||||
Reference in New Issue
Block a user