Set up a simple homepage with an auto-deploy tekton pipeline.
This commit is contained in:
42
docker/server/nginx.conf
Normal file
42
docker/server/nginx.conf
Normal file
@@ -0,0 +1,42 @@
|
||||
user web;
|
||||
worker_processes 4;
|
||||
|
||||
# Speed up regular expressions.
|
||||
pcre_jit on;
|
||||
|
||||
error_log stderr debug;
|
||||
|
||||
events {
|
||||
# Connections per worker process.
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include /etc/nginx/mime.types;
|
||||
default_type application/octet-stream;
|
||||
server_tokens off;
|
||||
client_max_body_size 1m;
|
||||
sendfile on;
|
||||
tcp_nopush on;
|
||||
|
||||
include headers.include;
|
||||
|
||||
server {
|
||||
listen 8080;
|
||||
root /srv/http/public;
|
||||
|
||||
location / {
|
||||
index index.html index.htm;
|
||||
if (-d $request_filename) {
|
||||
rewrite [^/]$ $http_x_forwarded_proto://$http_host$uri/ redirect;
|
||||
}
|
||||
}
|
||||
|
||||
location /healthz {
|
||||
access_log off;
|
||||
add_header 'Content-Type' 'application/json';
|
||||
return 200 '{"status":"OK"}';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user