Split config file

pull/3/head
Jef Roosens 2021-01-04 14:27:32 +01:00
parent 91378a9cf1
commit fc003b3cbb
3 changed files with 52 additions and 0 deletions

25
nginx/config/http 100644
View File

@ -0,0 +1,25 @@
http {
# SSL CONFIGURATION
# Key locations
ssl_certificate /etc/letsencrypt/live/karaoke.roosens.me/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/karaoke.roosens.me/privkey.pem;
# Allowed protocols
ssl_protocols TLSv1.2;
# Allowed cyphers
# ssl_ciphers EECDH+CHACHA20:EECDH+AES;
# Cache settings
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
# Still gotta figure out what these do
# ssl_session_tickets off;
# ssl_prefer_server_ciphers on;
# ssl_ecdh_curve X25519:prime256v1:secp521r1:secp384r1;
# LOAD SITES
include conf.d/sites_enabled/*.conf;
}

View File

@ -0,0 +1,8 @@
# Run as nginx user
user nginx nginx;
# Auto-detect the core count for worker processes
worker_processes auto;
# Load config segments
include conf.d/http;

View File

@ -0,0 +1,19 @@
version: '3.5'
services:
nginx:
build: './nginx'
image: 'nginx-certbot:stable-alpine'
ports:
- '80:80'
- '443:443'
networks:
- 'nginx'
volumes:
- 'certs:/etc/letsencrypt'
- './config:/etc/nginx/conf.d'
networks:
nginx:
volumes:
certs: