File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11[ ![ 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 )
22
3+ Project inspired by https://github.com/nginx-le/nginx-le
4+
35# TEMPLATE_NGINX_SSL
46
57Template for simple nginx-le based container for service requests routing.
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ services:
1616 volumes :
1717 - ./etc/ssl:/etc/nginx/ssl
1818 - ./etc/service.conf:/etc/nginx/service.conf
19+ # - ./etc/service-example-2.conf:/etc/nginx/service2.conf # more services, should be service*.conf
20+ # - ~/static:/var/www/static # volume for static data hosting
1921 ports :
2022 - " 80:80"
2123 - " 443:443"
Original file line number Diff line number Diff line change 55 listen 80;
66 listen 443;
77
8- root /var/www/you-domain.com;
8+ root /var/www/static/ you-domain.com;
99
1010 autoindex on;
1111
@@ -26,7 +26,7 @@ server {
2626 listen 80;
2727 listen 443;
2828
29- root /var/www/sub.you-domain;
29+ root /var/www/static/ sub.you-domain;
3030
3131 autoindex on;
3232
You can’t perform that action at this time.
0 commit comments