mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 07:10:33 +00:00
feat: add nginx default config.
This commit is contained in:
@@ -22,8 +22,7 @@ RUN npm run build
|
|||||||
|
|
||||||
FROM nginx
|
FROM nginx
|
||||||
|
|
||||||
COPY nginx/sites /etc/nginx/templates
|
COPY ./nginx/sites/default.conf /etc/nginx/conf.d/default.conf
|
||||||
COPY ./nginx/scripts /root/scripts/
|
|
||||||
|
|
||||||
RUN /bin/bash /root/scripts/nginx-build.sh
|
RUN /bin/bash /root/scripts/nginx-build.sh
|
||||||
|
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
for conf in /etc/nginx/templates/*.conf; do
|
|
||||||
mv $conf "/etc/nginx/sites-available/"$(basename $conf) > /dev/null
|
|
||||||
done
|
|
||||||
|
|
||||||
for template in /etc/nginx/templates/*.template; do
|
|
||||||
envsubst < $template > "/etc/nginx/sites-available/"$(basename $template)".conf"
|
|
||||||
done
|
|
||||||
|
|
||||||
if [[ "$NO_DEFAULT" = true ]]; then
|
|
||||||
rm /etc/nginx/sites-available/node.template.conf
|
|
||||||
rm /etc/nginx/sites-available/node-https.template.conf
|
|
||||||
else
|
|
||||||
if [[ "$WEB_SSL" = false ]]; then
|
|
||||||
rm /etc/nginx/sites-available/node-https.template.conf
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
Reference in New Issue
Block a user