mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 04:57:08 +00:00
refactor: move configuration files to app directory
This commit is contained in:
parent
049ed32e33
commit
9c768e4891
4
Makefile
4
Makefile
@ -314,8 +314,8 @@ templ:
|
||||
|
||||
pkl:
|
||||
@echo "(pkl) Building PKL"
|
||||
go run github.com/apple/pkl-go/cmd/pkl-gen-go ./config/pkl/dwn.pkl
|
||||
go run github.com/apple/pkl-go/cmd/pkl-gen-go ./config/pkl/orm.pkl
|
||||
go run github.com/apple/pkl-go/cmd/pkl-gen-go ./app/config/pkl/dwn.pkl
|
||||
go run github.com/apple/pkl-go/cmd/pkl-gen-go ./app/config/pkl/orm.pkl
|
||||
|
||||
start-caddy:
|
||||
@echo "(start-caddy) Starting caddy"
|
||||
|
@ -1,4 +1,4 @@
|
||||
@go.Package { name = "github.com/onsonr/sonr/config/dwn" }
|
||||
@go.Package { name = "github.com/onsonr/sonr/app/config/dwn" }
|
||||
|
||||
module dwn
|
||||
|
@ -1,43 +0,0 @@
|
||||
{
|
||||
# Global options
|
||||
email team@sonr.id
|
||||
}
|
||||
|
||||
# Services exposed via Cloudflare Tunnel
|
||||
:1323 {
|
||||
reverse_proxy localhost:1323
|
||||
}
|
||||
|
||||
:1317 {
|
||||
reverse_proxy localhost:1317
|
||||
}
|
||||
|
||||
:9090 {
|
||||
reverse_proxy localhost:9091
|
||||
}
|
||||
|
||||
:26657 {
|
||||
reverse_proxy localhost:26657
|
||||
}
|
||||
|
||||
vault.sonr.id {
|
||||
# Since vault.sonr.id has specific configurations, we can specify the hostname
|
||||
|
||||
reverse_proxy localhost:8080
|
||||
|
||||
@vault path_regexp vaultPath ^/([a-z0-9]{42})(/.*|)$
|
||||
|
||||
handle @vault {
|
||||
uri replace /{re.vaultPath.0} /ipns/{re.vaultPath.1}{re.vaultPath.2}
|
||||
reverse_proxy localhost:8080
|
||||
}
|
||||
|
||||
file_server
|
||||
|
||||
header {
|
||||
Content-Type .wasm application/wasm
|
||||
Service-Worker-Allowed "/"
|
||||
}
|
||||
|
||||
encode zstd gzip
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user