2019年5月5日日曜日

Access through untrusted domain対処 for Next Cloud

◻️kubectl createで作成後にwebにアクセスを行うと、以下のエラーが表示されてしまう。

Access through untrusted domain

Please contact your administrator. If you are an administrator, edit the "trusted_domains" setting in config/config.php like the example in config.sample.php.
Depending on your configuration, this button could also work to trust the domain:


◻️nextcloud(pod内)の設定ファイルの編集

1)対象のpodに接続を行う。
2)vimのインストールを行う。
3)以下、編集を行う
'trusted_domains' =>
array(
0 => 'localhost',
1 => '192.168.13.xx', <-----サーバーのIPを追加
),
==================================================


kubectl exec -it [pod名] /bin/sh

# apt-get update
# apt-get install vim

# vi /var/www/html/config/config.php
==================================================


◻️以下、ログインできるようだ。

0 件のコメント:

コメントを投稿

Lambda + SSM Run Commandで、数十台のEC2のuserdata結果を一括確認する

コードを1枚貼って、テストイベントを実行するだけで、 全台の確認結果が返ってくる手順です。 [ゴール] Nameタグが web-* / api-* / batch-* のEC2すべてに確認コマンドを流し、 NGの台だけ を結果に表示します。確認対象のuserdata(Ubu...