Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use haraiai.com instead of haraiai.netlify.app #33

Merged
merged 5 commits into from
Sep 18, 2023
Merged

Use haraiai.com instead of haraiai.netlify.app #33

merged 5 commits into from
Sep 18, 2023

Conversation

raahii
Copy link
Contributor

@raahii raahii commented Sep 18, 2023

resolve #32

Changes

Domain

haraiai.netlify.appharaiai.com

netlify側のドメインは廃止して新しいドメインにredirectさせる

Hosting

netlifycloudflare pages

@raahii raahii self-assigned this Sep 18, 2023
@raahii raahii changed the title move site to haraiai.com from haraiai.netlify.app Use haraiai.com instead of haraiai.netlify.app Sep 18, 2023
@raahii
Copy link
Contributor Author

raahii commented Sep 18, 2023

古いドメインに対するアクセスも新しいドメインへ飛ばせるようになった、良い感じ

❯ curl -v https://haraiai.netlify.app
*   Trying [2406:da18:b3d:e202::64]:443...
* Connected to haraiai.netlify.app (2406:da18:b3d:e202::64) port 443 (#0)

...

< HTTP/2 301
< age: 2
< cache-control: public,max-age=0,must-revalidate
< content-type: text/plain; charset=utf-8
< date: Mon, 18 Sep 2023 08:46:39 GMT
< location: https://haraiai.com/
< server: Netlify
< strict-transport-security: max-age=31536000; includeSubDomains; preload
< x-nf-request-id: 01HAKQGR2HGZ6EK0EK2GTX9836
< content-length: 35
<
* Connection #0 to host haraiai.netlify.app left intact
Redirecting to https://haraiai.com/⏎

@pocket-dan pocket-dan deleted a comment from cloudflare-pages bot Sep 18, 2023
@pocket-dan pocket-dan deleted a comment from github-actions bot Sep 18, 2023
@pocket-dan pocket-dan deleted a comment from github-actions bot Sep 18, 2023
@pocket-dan pocket-dan deleted a comment from github-actions bot Sep 18, 2023
@github-actions
Copy link

Terraform Initialization ⚙️success

Terraform Plan 📖success

Terraform Validation 🤖success

Show Plan
data.archive_file.bot: Reading...
data.google_secret_manager_secret_version.line_bot_channel_access_token: Reading...
data.google_secret_manager_secret_version.line_bot_channel_secret: Reading...
google_storage_bucket.bucket: Refreshing state... [id=haraiai-bucket]
data.google_secret_manager_secret_version.line_bot_channel_access_token: Read complete after 0s [id=projects/900543910035/secrets/lineBotChannelAccessToken/versions/1]
data.google_secret_manager_secret_version.line_bot_channel_secret: Read complete after 0s [id=projects/900543910035/secrets/lineBotChannelSecret/versions/1]
data.archive_file.bot: Read complete after 1s [id=06dcba2db21218ad4d90b74f5c01b7531fee2bbc]
google_storage_bucket_object.bot: Refreshing state... [id=haraiai-bucket-func/bot.83b71829bd57152cb18305c0103e482d.zip]
google_cloudfunctions_function.bot_webhook: Refreshing state... [id=projects/haraiai/locations/asia-northeast1/functions/BotWebhookHandler]
google_cloudfunctions_function_iam_member.webhook_invoker: Refreshing state... [id=projects/haraiai/locations/asia-northeast1/functions/BotWebhookHandler/roles/cloudfunctions.invoker/allUsers]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # google_cloudfunctions_function.bot_webhook will be updated in-place
  ~ resource "google_cloudfunctions_function" "bot_webhook" {
      ~ environment_variables        = {
          ~ "FE_BASE_URL"          = "https://haraiai.netlify.app" -> "https://haraiai.com"
            # (6 unchanged elements hidden)
        }
        id                           = "projects/haraiai/locations/asia-northeast1/functions/BotWebhookHandler"
        name                         = "BotWebhookHandler"
        # (19 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.

Pushed by: @raahii, Action: pull_request

@github-actions
Copy link

Terraform Initialization ⚙️success

Terraform Plan 📖success

Terraform Validation 🤖success

Show Plan
data.archive_file.bot: Reading...
google_storage_bucket.bucket: Refreshing state... [id=haraiai-bucket]
data.google_secret_manager_secret_version.line_bot_channel_secret: Reading...
data.google_secret_manager_secret_version.line_bot_channel_access_token: Reading...
data.archive_file.bot: Read complete after 0s [id=06dcba2db21218ad4d90b74f5c01b7531fee2bbc]
google_storage_bucket_object.bot: Refreshing state... [id=haraiai-bucket-func/bot.83b71829bd57152cb18305c0103e482d.zip]
data.google_secret_manager_secret_version.line_bot_channel_access_token: Read complete after 1s [id=projects/900543910035/secrets/lineBotChannelAccessToken/versions/1]
data.google_secret_manager_secret_version.line_bot_channel_secret: Read complete after 1s [id=projects/900543910035/secrets/lineBotChannelSecret/versions/1]
google_cloudfunctions_function.bot_webhook: Refreshing state... [id=projects/haraiai/locations/asia-northeast1/functions/BotWebhookHandler]
google_cloudfunctions_function_iam_member.webhook_invoker: Refreshing state... [id=projects/haraiai/locations/asia-northeast1/functions/BotWebhookHandler/roles/cloudfunctions.invoker/allUsers]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # google_cloudfunctions_function.bot_webhook will be updated in-place
  ~ resource "google_cloudfunctions_function" "bot_webhook" {
      ~ environment_variables        = {
          ~ "FE_BASE_URL"          = "https://haraiai.netlify.app" -> "https://haraiai.com"
            # (6 unchanged elements hidden)
        }
        id                           = "projects/haraiai/locations/asia-northeast1/functions/BotWebhookHandler"
        name                         = "BotWebhookHandler"
        # (19 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.

Pushed by: @raahii, Action: pull_request

@github-actions
Copy link

Terraform Initialization ⚙️success

Terraform Plan 📖success

Terraform Validation 🤖success

Show Plan
data.archive_file.bot: Reading...
data.google_secret_manager_secret_version.line_bot_channel_access_token: Reading...
data.google_secret_manager_secret_version.line_bot_channel_secret: Reading...
google_storage_bucket.bucket: Refreshing state... [id=haraiai-bucket]
data.google_secret_manager_secret_version.line_bot_channel_access_token: Read complete after 1s [id=projects/900543910035/secrets/lineBotChannelAccessToken/versions/1]
data.google_secret_manager_secret_version.line_bot_channel_secret: Read complete after 1s [id=projects/900543910035/secrets/lineBotChannelSecret/versions/1]
data.archive_file.bot: Read complete after 1s [id=06dcba2db21218ad4d90b74f5c01b7531fee2bbc]
google_storage_bucket_object.bot: Refreshing state... [id=haraiai-bucket-func/bot.83b71829bd57152cb18305c0103e482d.zip]
google_cloudfunctions_function.bot_webhook: Refreshing state... [id=projects/haraiai/locations/asia-northeast1/functions/BotWebhookHandler]
google_cloudfunctions_function_iam_member.webhook_invoker: Refreshing state... [id=projects/haraiai/locations/asia-northeast1/functions/BotWebhookHandler/roles/cloudfunctions.invoker/allUsers]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # google_cloudfunctions_function.bot_webhook will be updated in-place
  ~ resource "google_cloudfunctions_function" "bot_webhook" {
      ~ environment_variables        = {
          ~ "FE_BASE_URL"          = "https://haraiai.netlify.app" -> "https://haraiai.com"
            # (6 unchanged elements hidden)
        }
        id                           = "projects/haraiai/locations/asia-northeast1/functions/BotWebhookHandler"
        name                         = "BotWebhookHandler"
        # (19 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

─────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.

Pushed by: @raahii, Action: pull_request

@raahii raahii merged commit c7b0954 into main Sep 18, 2023
4 checks passed
@raahii raahii deleted the haraiai-com branch September 18, 2023 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ドメインを用意する
1 participant