bitnami@ip-192-168-150-225:~$ sudo /opt/bitnami/configure_app_domain --domain <mastodonのFQDN>
Configuring domain to mastodonのFQDN
2023-07-03T15:32:10.141Z - info: Saving configuration info to disk
mastodon 15:32:10.58 INFO ==> Updating domain in configuration file
mastodon 15:32:10.61 INFO ==> ** Reloading NGINX configuration **
mastodon 15:32:10.66 INFO ==> mastodon-web is not running
mastodon 15:32:15.86 INFO ==> mastodon-web started
mastodon 15:32:15.94 INFO ==> mastodon-streaming is not running
mastodon 15:32:21.09 INFO ==> mastodon-streaming started
mastodon 15:32:21.19 INFO ==> mastodon-sidekiq is not running
mastodon 15:32:26.37 INFO ==> mastodon-sidekiq started
Disabling automatic domain update for IP address changes
bitnami@ip-192-168-150-225:~$
bitnami@ip-192-168-150-225:~$ sudo /opt/bitnami/bncert-tool --domains <mastodonのFQDN>
Warning: Support for the nginx web server is limited. This tool will only be
able to generate HTTPS certificates and configure certificate renewal. It will
not enable/disable redirections or apply other types of server configurations.
Press [Enter] to continue:
An updated version is available. Would you like to download it? You would need to run it manually later. [Y/n]: y
The tool will exit now. To run the updated version run the following command:
/opt/bitnami/bncert-tool --domains <mastodonのFQDN>
bitnami@ip-192-168-150-225:~$
bitnami@ip-192-168-150-225:~$ sudo /opt/bitnami/bncert-tool --domains <mastodonのFQDN>
Warning: Support for the nginx web server is limited. This tool will only be
able to generate HTTPS certificates and configure certificate renewal. It will
not enable/disable redirections or apply other types of server configurations.
Press [Enter] to continue:[ENTER]を入力
----------------------------------------------------------------------------
Welcome to the Bitnami HTTPS Configuration tool.
----------------------------------------------------------------------------
Domains
Please provide a valid space-separated list of domains for which you wish to
configure your web server.
Domain list [<mastodonのFQDN>]: <mastodonのFQDN>を入力The following domains were not included: www.<mastodonのFQDN>. Do you want to add them? [Y/n]: n
----------------------------------------------------------------------------
Changes to perform
The following changes will be performed to your Bitnami installation:
1. Stop web server
2. Configure web server to use a free Let's Encrypt certificate for the domains:
mastodon.willserver.asia
3. Configure a cron job to automatically renew the certificate each month
4. Start web server once all changes have been performed
Do you agree to these changes? [Y/n]: y
----------------------------------------------------------------------------
Create a free HTTPS certificate with Let's Encrypt
Please provide a valid e-mail address for which to associate your Let's Encrypt
certificate.
Domain list: <mastodonのFQND>
Server name: <mastodonのFQND>
E-mail address []: [メールアドレスを入力]
The Let's Encrypt Subscriber Agreement can be found at:
https://letsencrypt.org/documents/LE-SA-v1.3-September-21-2022.pdf
Do you agree to the Let's Encrypt Subscriber Agreement? [Y/n]: y
----------------------------------------------------------------------------
Performing changes to your installation
The Bitnami HTTPS Configuration Tool will perform any necessary actions to your
Bitnami installation. This may take some time, please be patient.
----------------------------------------------------------------------------
Success
The Bitnami HTTPS Configuration Tool succeeded in modifying your installation.
The configuration report is shown below.
Backup files:
* /opt/bitnami/nginx/conf/nginx.conf.back.202307031535
*
/opt/bitnami/nginx/conf/server_blocks/default-https-server-block.conf.back.202307
031535
*
/opt/bitnami/nginx/conf/server_blocks/mastodon-https-server-block.conf.back.20230
7031535
*
/opt/bitnami/nginx/conf/server_blocks/mastodon-server-block.conf.back.20230703153
5
Find more details in the log file:
/tmp/bncert-202307031535.log
If you find any issues, please check Bitnami Support forums at:
Do you agree to the Let’s Encrypt Subscriber Agreement? [Y/n]: yを入力(Let’s Encryptに同意するかどうか?)
このCertBotの設定が完了したら、SSHしたついでに初期ユーザのパスワード確認しておきます。
bitnami@ip-192-168-150-225:~$ sudo cat /home/bitnami/bitnami_credentials
Welcome to the Mastodon packaged by Bitnami
******************************************************************************
The default username and password is 'user@bitnami.org' and 'xxxxxxxxxxxxxxxxx'.
******************************************************************************
You can also use this password to access the databases and any other component the stack includes.
Please refer to https://docs.bitnami.com/ for more details.
bitnami@ip-192-168-150-225:~$
コメント