嗯,我发现自己又遇到了和本周早些时候类似的情况。
之前我在 app.yml 中有一个拼写错误,导致我的网站无法访问。我正在浏览更改域名的帖子,rake 命令已完成,但我无法访问网站。
我以为我又犯了同样的错误,所以仔细检查了:
DISCOURSE_HOSTNAME: discourse.delawarereef.club
运行 ./discourse-setup 时,我得到了同样的错误:
Checking your domain name . . .
WARNING: Port 443 of computer does not appear to be accessible using hostname: 443.
WARNING: Connection to http://443 (port 80) also fails.
这让我觉得我仍然在某个地方有一个拼写错误,只是我没有看到。
app.yml 的顶部:
templates:
- templates/postgres.template.yml
- templates/redis.template.yml
- templates/web.template.yml
- templates/web.ratelimited.template.yml
- templates/web.ssl.template.yml
- templates/web.letsencrypt.ssl.template.yml
expose:
- '80:80'
- '443:443'
params:
db_default_text_search_config: pg_catalog.english
db_shared_buffers: 128MB
version: tests-passed
env:
LANG: en_US.UTF-8
UNICORN_WORKERS: 2
DISCOURSE_HOSTNAME: discourse.delawarereef.club
DISCOURSE_DEVELOPER_EMAILS: <MY EMAIL>
DISCOURSE_SMTP_ADDRESS: smtp.ionos.com
DISCOURSE_SMTP_PORT: 587
DISCOURSE_SMTP_USER_NAME: site@brandywinereef.club
DISCOURSE_SMTP_PASSWORD: <PASSWORD>
#DISCOURSE_SMTP_DOMAIN: discourse.example.com # (required by some providers)
#DISCOURSE_NOTIFICATION_EMAIL: nobody@discourse.example.com # (address to send notifications from)
DISCOURSE_SMTP_ENABLE_START_TLS: true
LETSENCRYPT_ACCOUNT_EMAIL: site@brandywinereef.club
#DISCOURSE_MAXMIND_LICENSE_KEY: 1234567890123456
#DISCOURSE_USE_S3: true
DISCOURSE_S3_REGION: us-east-1
DISCOURSE_S3_ACCESS_KEY_ID: <KEY>
DISCOURSE_S3_SECRET_ACCESS_KEY: <KEY>
DISCOURSE_S3_CDN_URL: 'https://d2hneyr8lp58j4.cloudfront.net'
DISCOURSE_S3_BUCKET: brcuploads
DISCOURSE_S3_BACKUP_BUCKET: brcuploads-backups
DISCOURSE_BACKUP_LOCATION: s3
我又遗漏了什么显而易见的东西吗?
编辑:
我可以正常 ping 通该 URL,并且它指向正确的 IP 地址。