forked from samuel-p/connectivity-check
added nginx config, Dockerfile and ci build with .drone.yml
This commit is contained in:
parent
3e4ebfc84f
commit
3dcc509679
3 changed files with 50 additions and 0 deletions
12
.drone.yml
Normal file
12
.drone.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
kind: pipeline
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
repo: samuelph/connectivity-check
|
||||
username:
|
||||
from_secret: USERNAME
|
||||
password:
|
||||
from_secret: PASSWORD
|
4
Dockerfile
Normal file
4
Dockerfile
Normal file
|
@ -0,0 +1,4 @@
|
|||
FROM nginx
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
COPY index.html /usr/share/nginx/html
|
34
nginx.conf
Normal file
34
nginx.conf
Normal file
|
@ -0,0 +1,34 @@
|
|||
worker_processes 1;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
access_log off;
|
||||
error_log off;
|
||||
|
||||
add_header Content-Security-Policy "default-src 'none'";
|
||||
add_header Referrer-Policy "same-origin";
|
||||
add_header Feature-Policy "sync-xhr 'none'";
|
||||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload";
|
||||
add_header X-Content-Type-Options "nosniff";
|
||||
add_header X-Frame-Options "DENY";
|
||||
add_header X-XSS-Protection: "1; mode=block";
|
||||
add_header X-NetworkManager-Status "online";
|
||||
|
||||
location /generate204 {
|
||||
return 204;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue