commit 16deca9327f2487152fe0e0859286a09dd8464fb Author: usbharu Date: Fri Dec 27 14:06:35 2024 +0900 first commit diff --git a/.gitea/workflows/build-image.yaml b/.gitea/workflows/build-image.yaml new file mode 100644 index 0000000..90d8cd4 --- /dev/null +++ b/.gitea/workflows/build-image.yaml @@ -0,0 +1,36 @@ +name: build and deploy + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - uses: docker/setup-buildx-action@v3 + - uses: docker/login-action@v3 + with: + registry: git.usbharu.dev + username: usbharu + password: ${{ secrets.PUBLIC_REPOSITORY_PACKAGE_WRITE_TOKEN }} + - name: metadata + id: meta + uses: docker/metadata-action@v5 + with: + images: git.usbharu.dev/usbharu/misskey-sorry-page + tags: | + type=raw,value=latest + type=sha,prefix=,suffix=,format=short + - name: build + uses: docker/build-push-action@v5 + with: + file: ./Dockerfile + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..cc5c502 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# デフォルトの無視対象ファイル +/shelf/ +/workspace.xml +# エディターベースの HTTP クライアントリクエスト +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..d2efbd4 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d22caf2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM nginx:1.27.3 +LABEL authors="usbharu" + +COPY sorry.html /usr/share/nginx/html/sorry.html +COPY sorry.conf /etc/nginx/conf.d/sorry.conf \ No newline at end of file diff --git a/misskey-sorry-page.iml b/misskey-sorry-page.iml new file mode 100644 index 0000000..9a5cfce --- /dev/null +++ b/misskey-sorry-page.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/sorry.conf b/sorry.conf new file mode 100644 index 0000000..be2668e --- /dev/null +++ b/sorry.conf @@ -0,0 +1,17 @@ +server { + listen 3000; + + # エラーページの指定 + error_page 503 /sorry.html; + + # エラーページのファイルを提供 + location = /sorry.html { + root /usr/share/nginx/html/; + internal; + } + + # 全てのリクエストに対して503を返す + location / { + return 503; + } +} diff --git a/sorry.html b/sorry.html new file mode 100644 index 0000000..2733fea --- /dev/null +++ b/sorry.html @@ -0,0 +1,19 @@ + + + + + + 503 Service Unavailable + + +

503 Service Unavailable

+

現在メンテナンス中です。ご迷惑をおかけして申し訳ございません。

+

We are currently undergoing maintenance. We apologize for the inconvenience.

+

お問い合わせ先:

+ + +