Description
When I use sub path for the focalboard such as http://192.168.7.43/focalboard, login and register new account not work it display login failed error for login and undefined for register new account .
My conf.json is:
{
"serverRoot": "http://192.168.7.43/focalboard",
"port": 8000,
"dbtype": "postgres",
"dbconfig": "postgres://focaluser:password@localhost/focaldb?sslmode=disable&connect_timeout=10",
"postgres_dbconfig": "dbname=focalboard sslmode=disable",
"useSSL": false,
"webpath": "./pack",
"filespath": "./files",
"telemetry": true,
"prometheusaddress": ":9092",
"session_expire_time": 2592000,
"session_refresh_time": 18000,
"localOnly": false,
"enableLocalMode": true,
"localModeSocketLocation": "/var/tmp/focalboard_local.socket"
}
my nginx.conf is:
upstream focalboard {
server localhost:8000;
keepalive 32;
}
server {
listen 80;
listen [::]:80;
server_name 192.168.7.43;
location /focalboard {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /mattermost {
proxy_pass http://127.0.0.1:8065;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
the error in error.log is:
2023/06/15 05:50:15 [error] 63691#63691: *887 open() "/usr/share/nginx/html/api/v2/register" failed (2: No such file or directory), client: 10.10.106.23, server: 192.168.7.43, request: "POST /api/v2/register HTTP/1.1", host: "192.168.7.43", referrer: "http://192.168.7.43/register"
2023/06/15 05:51:40 [error] 63691#63691: *916 open() "/usr/share/nginx/html/api/v2/login" failed (2: No such file or directory), client: 10.10.106.23, server: 192.168.7.43, request: "POST /api/v2/login HTTP/1.1", host: "192.168.7.43", referrer: "http://192.168.7.43/login"
My versions:
Ubuntu-22.04-server
nginx/1.18.0
PostgreSQL 14.8
focalboard 7.10.0