mirror of
https://github.com/taigaio/taiga-front
synced 2025-10-06 02:22:42 +02:00
Hide docker conf.json for simple configuration
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
*
|
||||
!docker/default.conf
|
||||
!docker/conf.json.template
|
||||
!docker/config_env_subst.sh
|
||||
|
@@ -2,6 +2,8 @@ FROM nginx:1.19-alpine
|
||||
LABEL maintainer="support@taiga.io"
|
||||
|
||||
COPY docker/default.conf /etc/nginx/conf.d/default.conf
|
||||
COPY docker/conf.json.template /
|
||||
COPY docker/config_env_subst.sh /docker-entrypoint.d/30_config_env_subst.sh
|
||||
|
||||
RUN apk update \
|
||||
&& apk add --no-cache --virtual .build-deps \
|
||||
@@ -9,6 +11,8 @@ RUN apk update \
|
||||
# Install taiga-front core
|
||||
&& wget https://github.com/taigaio/taiga-front-dist/archive/master.zip \
|
||||
&& unzip master.zip \
|
||||
&& mv /conf.json.template taiga-front-dist-master/dist/ \
|
||||
&& chmod +x /docker-entrypoint.d/30_config_env_subst.sh \
|
||||
# Install taiga-front contribs
|
||||
&& mkdir taiga-front-dist-master/dist/plugins \
|
||||
&& cd taiga-front-dist-master/dist/plugins \
|
||||
@@ -16,6 +20,7 @@ RUN apk update \
|
||||
&& cd / \
|
||||
# Remove unused dependencies
|
||||
&& apk del --no-cache .build-deps \
|
||||
&& rm master.zip \
|
||||
# Ready for nginx
|
||||
&& mv taiga-front-dist-master/dist/* /usr/share/nginx/html \
|
||||
&& rm -rf taiga-front-dist-master
|
||||
|
28
docker/conf.json.template
Normal file
28
docker/conf.json.template
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"api": "http://localhost:${TAIGA_PORT}/api/v1/",
|
||||
"eventsUrl": null,
|
||||
"eventsMaxMissedHeartbeats": 5,
|
||||
"eventsHeartbeatIntervalTime": 60000,
|
||||
"eventsReconnectTryInterval": 10000,
|
||||
"debug": true,
|
||||
"debugInfo": false,
|
||||
"defaultLanguage": "en",
|
||||
"themes": ["taiga"],
|
||||
"defaultTheme": "taiga",
|
||||
"defaultLoginEnabled": true,
|
||||
"publicRegisterEnabled": true,
|
||||
"feedbackEnabled": true,
|
||||
"supportUrl": "https://tree.taiga.io/support/",
|
||||
"privacyPolicyUrl": null,
|
||||
"termsOfServiceUrl": null,
|
||||
"GDPRUrl": null,
|
||||
"maxUploadFileSize": null,
|
||||
"contribPlugins": [
|
||||
"/plugins/slack/slack.json"
|
||||
],
|
||||
"tagManager": { "accountId": null },
|
||||
"tribeHost": null,
|
||||
"importers": [],
|
||||
"gravatar": false,
|
||||
"rtlLanguages": ["fa"]
|
||||
}
|
2
docker/config_env_subst.sh
Normal file
2
docker/config_env_subst.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
envsubst < /usr/share/nginx/html/conf.json.template \
|
||||
> /usr/share/nginx/html/conf.json \
|
Reference in New Issue
Block a user