Discourse フォーラムの皆さん、こんにちは。
以前は、この リンク を使って Discourse を正常にインストールできましたが、今回は以下のエラーが発生してしまいました。インストールのサポートをお願いします。
この問題を解決したら、どのように修正したか共有したいと考えています。
Web ブラウザから Discourse をインストールしようとすると、以下のエラーが表示されます。
[Error] Failed to load resource: the server responded with a status of 404 () (wizard_c4aee3fa9261fde8baf9c596832d10e16a40c298.css, line 0)
[Error] Failed to load resource: the server responded with a status of 404 () (wizard-vendor-e639f7bedb553c62a51539714bacf10a7bb9c2a68ee57d9d9e9da130ede31d8b.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 () (tada.svg, line 0)
[Error] Failed to load resource: the server responded with a status of 404 () (ember_jquery-57d09ec67e9e407d9b0d42aa1fefd1a470c45310d953b07793a3ca8adc6ec599.js, line 0)
[Error] Refused to execute https://forum.sangean.co.kr/assets/ember_jquery-57d09ec67e9e407d9b0d42aa1fefd1a470c45310d953b07793a3ca8adc6ec599.js as script because “X-Content-Type: nosniff” was given and its Content-Type is not a script MIME type.
[Error] Refused to execute https://forum.sangean.co.kr/assets/wizard-vendor-e639f7bedb553c62a51539714bacf10a7bb9c2a68ee57d9d9e9da130ede31d8b.js as script because “X-Content-Type: nosniff” was given and its Content-Type is not a script MIME type.
[Error] Failed to load resource: the server responded with a status of 404 () (tada.svg, line 0)
私の環境は Ubuntu 18.94、Nginx リバースプロキシです。
すべての手順を root ユーザーで実行しました。以下は /var/discourse/shared/standalone の ls -al 情報です。
パーミッション関連の問題だと推測していますが、確信はありません。
drwxr-xr-x 11 root root 4096 Apr 4 05:50 .
drwxr-xr-x 3 root root 4096 Apr 4 04:45 ..
drwxr-xr-x 2 1000 www-data 4096 Apr 4 04:45 backups
drwxr-xr-x 4 root root 4096 Apr 4 04:45 log
drwxr-xr-x 2 uuidd uuidd 4096 Apr 4 04:45 postgres_backup
drwx------ 19 uuidd uuidd 4096 Apr 4 05:50 postgres_data
drwxrwxr-x 3 uuidd uuidd 4096 Apr 4 05:50 postgres_run
drwxr-xr-x 2 landscape ssh 4096 Apr 4 06:00 redis_data
drwxr-xr-x 4 root root 4096 Apr 4 05:50 state
drwxr-xr-x 4 1000 www-data 4096 Apr 4 05:50 tmp
drwxr-xr-x 3 1000 www-data 4096 Apr 4 04:47 uploads
私の /nginx/sites-available/forum.sangean.co.kr 設定は以下の通りです。
server {
listen 80; listen [::]:80;
server_name forum.sangean.co.kr;return 301 https://$host$request_uri;}
server {
server_name forum.sangean.co.kr www.forum.sangean.co.kr;access_log /var/log/nginx/forum.sangean.co.kr.access.log ; error_log /var/log/nginx/forum.sangean.co.kr.error.log; include common/locations-wo.conf; include /var/www/forum.sangean.co.kr/conf/nginx/*.conf; location / { proxy_pass http://forum.sangean.co.kr:25654/; proxy_set_header Host $http_host; proxy_http_version 1.1; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_redirect http://forum.sangean.co.kr:25654/ https://forum.sangean.co.kr; }}
必要な場合は、関連する nginx 設定ファイルや Discourse 設定ファイルを含めることもできますので、この投稿を編集するか返信してください。
よろしくお願いいたします。
