From 4d77e381566613b37310c8257fc359fb3b23a3ac Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 10 Aug 2024 00:15:22 +0900 Subject: feat: add albatross-swift --- .gitmodules | 3 +++ Makefile | 9 ++++++--- mioproxy.prod.hcl | 11 +++++++++++ vhosts/t/albatross-swift | 1 + 4 files changed, 21 insertions(+), 3 deletions(-) create mode 160000 vhosts/t/albatross-swift diff --git a/.gitmodules b/.gitmodules index 03f00fd..3150cf7 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "vhosts/t/albatross"] path = vhosts/t/albatross url = git@github.com:nsfisis/phperkaigi-2024-albatross.git +[submodule "vhosts/t/albatross-swift"] + path = vhosts/t/albatross-swift + url = git@github.com:nsfisis/iosdc-japan-2024-albatross.git diff --git a/Makefile b/Makefile index 2b33341..8f2fc32 100644 --- a/Makefile +++ b/Makefile @@ -10,14 +10,17 @@ provision: .PHONY: build build: - cd vhosts/t/albatross; make -f Makefile.prod build + # cd vhosts/t/albatross; make -f Makefile.prod build + cd vhosts/t/albatross-swift; make -f Makefile.prod build .PHONY: serve serve: sudo systemctl start mioproxy - cd vhosts/t/albatross; make -f Makefile.prod serve + # cd vhosts/t/albatross; make -f Makefile.prod serve + cd vhosts/t/albatross-swift; make -f Makefile.prod serve .PHONY: clean clean: - cd vhosts/t/albatross; make -f Makefile.prod clean + cd vhosts/t/albatross-swift; make -f Makefile.prod clean + # cd vhosts/t/albatross; make -f Makefile.prod clean sudo systemctl stop mioproxy diff --git a/mioproxy.prod.hcl b/mioproxy.prod.hcl index c2518d3..c7e0190 100644 --- a/mioproxy.prod.hcl +++ b/mioproxy.prod.hcl @@ -27,4 +27,15 @@ server https { port = 8001 } } + + proxy albatross-swift { + from { + host = "t.nil.ninja" + path = "/iosdc-japan/2024/code-battle/" + } + to { + host = "127.0.0.1" + port = 8002 + } + } } diff --git a/vhosts/t/albatross-swift b/vhosts/t/albatross-swift new file mode 160000 index 0000000..b450648 --- /dev/null +++ b/vhosts/t/albatross-swift @@ -0,0 +1 @@ +Subproject commit b450648caa0d1bd5c91e67a33153bbacaf57f006 -- cgit v1.2.3-70-g09d2