Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[![Dry Run](https://github.com/killroy192/template-nginx-ssl/actions/workflows/dry-run.yml/badge.svg)](https://github.com/killroy192/template-nginx-ssl/actions/workflows/dry-run.yml)

Project inspired by https://github.com/nginx-le/nginx-le

# TEMPLATE_NGINX_SSL

Template for simple nginx-le based container for service requests routing.
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ services:
volumes:
- ./etc/ssl:/etc/nginx/ssl
- ./etc/service.conf:/etc/nginx/service.conf
# - ./etc/service-example-2.conf:/etc/nginx/service2.conf # more services, should be service*.conf
# - ~/static:/var/www/static # volume for static data hosting
ports:
- "80:80"
- "443:443"
Expand Down
4 changes: 2 additions & 2 deletions examples/static.routing.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ server {
listen 80;
listen 443;

root /var/www/you-domain.com;
root /var/www/static/you-domain.com;

autoindex on;

Expand All @@ -26,7 +26,7 @@ server {
listen 80;
listen 443;

root /var/www/sub.you-domain;
root /var/www/static/sub.you-domain;

autoindex on;

Expand Down