mirror of
https://github.com/bitwarden/web
synced 2026-01-09 20:14:01 +00:00
More work on the decoupling. It is not currently in a working state
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
FROM nginx:stable
|
||||
|
||||
LABEL com.bitwarden.product="bitwarden"
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
gosu \
|
||||
curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY nginx.conf /etc/nginx
|
||||
COPY nginx-web.conf /etc/nginx
|
||||
COPY mime.types /etc/nginx
|
||||
COPY security-headers.conf /etc/nginx
|
||||
|
||||
WORKDIR /app
|
||||
EXPOSE 80
|
||||
COPY ./build .
|
||||
COPY entrypoint.sh /
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
HEALTHCHECK CMD curl -f http://localhost:80 || exit 1
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
@@ -32,6 +32,6 @@ mkhomedir_helper $USERNAME
|
||||
chown -R $USERNAME:$GROUPNAME /etc/bitwarden
|
||||
cp /etc/bitwarden/web/app-id.json /app/app-id.json
|
||||
chown -R $USERNAME:$GROUPNAME /app
|
||||
chown -R $USERNAME:$GROUPNAME /bitwarden_server
|
||||
#chown -R $USERNAME:$GROUPNAME /bitwarden_server
|
||||
|
||||
exec nginx -g daemon off;
|
||||
#exec nginx -g 'daemon off;'
|
||||
|
||||
@@ -27,11 +27,9 @@ events {
|
||||
# Default error log file
|
||||
# (this is only used when you don't override error_log on a server{} level)
|
||||
error_log /var/log/nginx/error.log warn;
|
||||
pid /var/run/nginx/nginx.pid;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
http {
|
||||
include proxy.conf;
|
||||
|
||||
# Hide nginx version information.
|
||||
server_tokens off;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user