Add error server

This commit is contained in:
Ajay 2024-04-16 03:01:44 -04:00
parent 2251ddc251
commit 7c51586664
4 changed files with 48 additions and 0 deletions

16
.github/workflows/error-server.yml vendored Normal file
View file

@ -0,0 +1,16 @@
name: Docker image builds
on:
push:
branches:
- master
workflow_dispatch:
jobs:
error-server:
uses: ./.github/workflows/docker-build.yml
with:
name: "error-server"
username: "ajayyy"
folder: "./containers/error-server"
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -0,0 +1,4 @@
FROM nginx as app
EXPOSE 80
COPY nginx.conf /etc/nginx/nginx.conf
COPY default.conf /etc/nginx/conf.d/default.conf

View file

@ -0,0 +1,9 @@
server {
listen 80;
listen [::]:80;
server_name localhost;
location / {
return 503;
}
}

View file

@ -0,0 +1,19 @@
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 4096;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log off;
error_log /dev/null crit;
include /etc/nginx/conf.d/*.conf;
}