summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Makefile27
-rw-r--r--mioproxy.prod.hcl10
-rw-r--r--services/nilink/Makefile.prod15
-rw-r--r--services/nilink/compose.yaml11
-rw-r--r--services/nilink/data/.gitignore2
5 files changed, 53 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 5cbd6bd..74de9e8 100644
--- a/Makefile
+++ b/Makefile
@@ -10,26 +10,29 @@ provision:
.PHONY: build
build:
- cd services/albatross-php-2024; make -f Makefile.prod build
- cd vhosts/t/albatross-swift; make -f Makefile.prod build
- cd vhosts/t/albatross-php-2025; make -f Makefile.prod build
+ cd services/albatross-php-2024; make -f Makefile.prod build
+ cd services/nilink; make -f Makefile.prod build
+ cd vhosts/t/albatross-swift; make -f Makefile.prod build
+ cd vhosts/t/albatross-php-2025; make -f Makefile.prod build
cd vhosts/t/albatross-swift-2025; make -f Makefile.prod build
- cd vhosts/t/phpcon-kagawa-2025; make -f Makefile.prod build
+ cd vhosts/t/phpcon-kagawa-2025; make -f Makefile.prod build
.PHONY: serve
serve:
sudo systemctl start mioproxy
- cd services/albatross-php-2024; make -f Makefile.prod serve
- cd vhosts/t/albatross-swift; make -f Makefile.prod serve
- cd vhosts/t/albatross-php-2025; make -f Makefile.prod serve
+ cd services/albatross-php-2024; make -f Makefile.prod serve
+ cd services/nilink; make -f Makefile.prod serve
+ cd vhosts/t/albatross-swift; make -f Makefile.prod serve
+ cd vhosts/t/albatross-php-2025; make -f Makefile.prod serve
cd vhosts/t/albatross-swift-2025; make -f Makefile.prod serve
- cd vhosts/t/phpcon-kagawa-2025; make -f Makefile.prod serve
+ cd vhosts/t/phpcon-kagawa-2025; make -f Makefile.prod serve
.PHONY: clean
clean:
- cd vhosts/t/phpcon-kagawa-2025; make -f Makefile.prod clean
+ cd vhosts/t/phpcon-kagawa-2025; make -f Makefile.prod clean
cd vhosts/t/albatross-swift-2025; make -f Makefile.prod clean
- cd vhosts/t/albatross-php-2025; make -f Makefile.prod clean
- cd vhosts/t/albatross-swift; make -f Makefile.prod clean
- cd services/albatross-php-2024; make -f Makefile.prod clean
+ cd vhosts/t/albatross-php-2025; make -f Makefile.prod clean
+ cd vhosts/t/albatross-swift; make -f Makefile.prod clean
+ cd services/nilink; make -f Makefile.prod clean
+ cd services/albatross-php-2024; make -f Makefile.prod clean
sudo systemctl stop mioproxy
diff --git a/mioproxy.prod.hcl b/mioproxy.prod.hcl
index 7a31dbb..2ab65ca 100644
--- a/mioproxy.prod.hcl
+++ b/mioproxy.prod.hcl
@@ -71,4 +71,14 @@ server https {
port = 8005
}
}
+
+ proxy nilink {
+ from {
+ host = "go.nil.ninja"
+ }
+ to {
+ host = "127.0.0.1"
+ port = 8006
+ }
+ }
}
diff --git a/services/nilink/Makefile.prod b/services/nilink/Makefile.prod
new file mode 100644
index 0000000..f78efa4
--- /dev/null
+++ b/services/nilink/Makefile.prod
@@ -0,0 +1,15 @@
+.PHONY: build
+build:
+ docker compose build
+
+.PHONY: serve
+serve:
+ docker compose up -d
+
+.PHONY: clean
+clean:
+ docker compose down
+
+.PHONY: logs
+logs:
+ docker compose logs
diff --git a/services/nilink/compose.yaml b/services/nilink/compose.yaml
new file mode 100644
index 0000000..1aed996
--- /dev/null
+++ b/services/nilink/compose.yaml
@@ -0,0 +1,11 @@
+services:
+ nilink:
+ image: ghcr.io/nsfisis/nilink:0.1.1
+ container_name: nilink
+ ports:
+ - '127.0.0.1:8006:8080'
+ volumes:
+ - ./data:/app/data
+ environment:
+ TZ: Asia/Tokyo
+ restart: always
diff --git a/services/nilink/data/.gitignore b/services/nilink/data/.gitignore
new file mode 100644
index 0000000..d6b7ef3
--- /dev/null
+++ b/services/nilink/data/.gitignore
@@ -0,0 +1,2 @@
+*
+!.gitignore