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 件のコメント:

コメントを投稿

ハッキングツール一覧(ホワイトハッカー編)

  1. ポート・ネットワークスキャン系 Nmap :標準。ポート・サービス検出・OS推定まで。 # 単純なポートスキャン nmap 192.168.1.10 # 開いているポートとサービスを詳細にスキャン nmap -sV -O 192.168.1.10 # 複数ホストをスキャ...