How to integrate your Interface into nginx

Đang mở
#13 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
javascript, nginx, node.js
Lĩnh vực
devops, documentation

Hướng nghiên cứu

Review the nginx/sites-available/00-default-ssl.conf configuration and the /etc/nginx/templates/mlmmj-web.tmpl example provided in the issue. Document the required nginx integration for iredmail, including the routing and proxy settings needed for the interface to work at /mlmmj-web/ without a 404 after login.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

question

Hi there,
I'm trying to add your interface into iredmail, but with no luck. There is no nginx integration described anywhere. So I stucked at 404 not found problem after login.
Here is my current nginx/sites-available/00-default-ssl.conf (which is indeed enabled):

Note: This file must be loaded before other virtual host config files,

HTTPS

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name _;

root /var/www/html;
index index.php index.html;

include /etc/nginx/templates/misc.tmpl;
include /etc/nginx/templates/phpldapadmin.tmpl;
include /etc/nginx/templates/ssl.tmpl;
include /etc/nginx/templates/iredadmin.tmpl;
include /etc/nginx/templates/roundcube.tmpl;
include /etc/nginx/templates/sogo.tmpl;
include /etc/nginx/templates/netdata.tmpl;
include /etc/nginx/templates/php-catchall.tmpl;
include /etc/nginx/templates/stub_status.tmpl;
include /etc/nginx/templates/mlmmj-web.tmpl;

}

and with a template (/etc/nginx/templates/mlmmj-web.tmpl) looking like this:

Mlmmj-Simple-Web-Interface Proxy Template

location /mlmmj-web/ {
allow all;
proxy_pass http://127.0.0.1:4792/;
root /opt/mlmmj-simple-web-interface;
rewrite ^/mlmmj-web/(.*)$ /$1 break;
index index.js;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;

#proxy_redirect off;
proxy_redirect http://localhost:4792/ /mlmmj-web/;
proxy_redirect / /mlmmj-web/;

}

Does anyone has a hint for me?

Ngôn ngữ chính
JavaScript
Star
29
Fork
9
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của tchapi/mlmmj-simple-web-interface

Tất cả issue của tchapi/mlmmj-simple-web-interface

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.