Skip to content
Snippets Groups Projects
Commit 9c667e98 authored by TetrasBI's avatar TetrasBI
Browse files

Inial commit

parents
Branches
No related tags found
No related merge requests found
.env
.*.sw?
disabled
Readme 0 → 100644
version: '3'
services:
maintenance:
image: nginx
volumes:
- "./www:/usr/share/nginx/html:ro"
- "./nginx.conf:/etc/nginx/nginx.conf:ro"
networks:
- traefik
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.http.routers.maintenance.rule=Host(${HOSTS})&&!ClientIP(${IGNORE_IPS})"
- "traefik.http.routers.maintenance.tls.certresolver=myresolver"
- "traefik.http.routers.maintenance.entrypoints=web,websecure"
- "traefik.http.routers.maintenance.middlewares=hardening@docker"
- "traefik.http.routers.maintenance.priority=99999"
networks:
traefik:
external: true
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
#include /etc/nginx/conf.d/*.conf;
server {
listen 80;
listen [::]:80;
server_name maintenance;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
}
}
Maintenance en cours
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment