mirror of
https://github.com/RealOrangeOne/notes.git
synced 2024-12-22 20:16:14 +00:00
Remove docker bits
GitLab pages all the way!
This commit is contained in:
parent
09eb5947b6
commit
458129b40a
2 changed files with 0 additions and 74 deletions
19
Dockerfile
19
Dockerfile
|
@ -1,19 +0,0 @@
|
|||
# Site Build
|
||||
FROM node:lts-slim as build
|
||||
|
||||
ENV NODE_ENV production
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . /app
|
||||
|
||||
RUN npm ci --production
|
||||
|
||||
RUN npm run release
|
||||
|
||||
# Production run
|
||||
FROM nginx:stable-alpine
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
COPY --from=build /app/public/ /usr/share/nginx/html
|
55
nginx.conf
55
nginx.conf
|
@ -1,55 +0,0 @@
|
|||
user nginx;
|
||||
worker_processes auto;
|
||||
|
||||
error_log stderr;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
|
||||
access_log /dev/stdout;
|
||||
|
||||
server_tokens off;
|
||||
|
||||
sendfile on;
|
||||
|
||||
keepalive_timeout 65;
|
||||
|
||||
gzip on;
|
||||
gzip_static on;
|
||||
|
||||
gzip_types *;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
set_real_ip_from 0.0.0.0/0;
|
||||
real_ip_header X-Forwarded-For;
|
||||
|
||||
add_header X-Frame-Options "SAMEORIGIN";
|
||||
add_header X-XSS-Protection "1; mode=block";
|
||||
add_header X-Content-Type-Options "nosniff";
|
||||
add_header Referrer-Policy "same-origin";
|
||||
add_header Strict-Transport-Security "max-age=5184000";
|
||||
|
||||
location /ping {
|
||||
return 200 "PONG";
|
||||
}
|
||||
|
||||
location ~* \.(png|jpg|gif|svg|txt|css|js|xml|eot|ttf|woff2|woff)$ {
|
||||
add_header Cache-Control "public, max-age=0, must-revalidate";
|
||||
}
|
||||
|
||||
error_page 404 /404.html;
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue