If you are going to use subpath, you cannot access it with localhost and you need to setup a nginx/apache to manage the access to the subpath properly.
Imagine I want to serve taiga at http://bameda.com/taiga/
so my .env
file should be like this:
# $ cat .env
# Taiga's URLs - Variables to define where Taiga should be served
TAIGA_SCHEME=http
TAIGA_DOMAIN=bameda.com
SUBPATH="/taiga"
WEBSOCKETS_SCHEME=ws
# (...)
And my nginx settings should be something like this:
# $ cat /etc/nginx/sites-available/bameda.com
server {
server_name bameda.com;
large_client_header_buffers 4 32k;
client_max_body_size 50M;
charset utf-8;
access_log /var/log/nginx/bameda.com.access.log;
error_log /var/log/nginx/bameda.com.error.log;
# front
location /taiga/ {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
proxy_pass http://localhost:9000/;
}
# events
location /taiga/events {
proxy_pass http://localhost:9000/events; # docker
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_connect_timeout 7d;
proxy_send_timeout 7d;
proxy_read_timeout 7d;
}
}
With this, It should be work. You can change bameda.com
with your public domain or public ip. An now you can obtain the config file with curl
$ curl bameda.com/taiga/conf.json
{
"api": "http://bameda.com/taiga/api/v1/",
"eventsUrl": "ws://bameda.com/taiga/events",
"baseHref": "/taiga/",
"eventsMaxMissedHeartbeats": 5,
"eventsHeartbeatIntervalTime": 60000,
"eventsReconnectTryInterval": 10000,
"debug": false,
"debugInfo": false,
"defaultLanguage": "en",
"themes": ["taiga"],
"defaultTheme": "taiga",
"defaultLoginEnabled": true,
"publicRegisterEnabled": false,
"feedbackEnabled": true,
"supportUrl": "https://community.taiga.io/",
"privacyPolicyUrl": null,
"termsOfServiceUrl": null,
"maxUploadFileSize": null,
"contribPlugins": [],
"gitHubClientId": "",
"gitLabClientId": "",
"gitLabUrl": "",
"tagManager": { "accountId": null },
"tribeHost": null,
"enableAsanaImporter": false,
"enableGithubImporter": false,
"enableJiraImporter": false,
"enableTrelloImporter": false,
"gravatar": false,
"rtlLanguages": ["fa"]
}
I hope this can help.