mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Add error server
This commit is contained in:
parent
2251ddc251
commit
7c51586664
4 changed files with 48 additions and 0 deletions
16
.github/workflows/error-server.yml
vendored
Normal file
16
.github/workflows/error-server.yml
vendored
Normal 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 }}
|
4
containers/error-server/Dockerfile
Normal file
4
containers/error-server/Dockerfile
Normal 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
|
9
containers/error-server/default.conf
Normal file
9
containers/error-server/default.conf
Normal file
|
@ -0,0 +1,9 @@
|
|||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name localhost;
|
||||
|
||||
location / {
|
||||
return 503;
|
||||
}
|
||||
}
|
19
containers/error-server/nginx.conf
Normal file
19
containers/error-server/nginx.conf
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue