Skip to content

Commit af79b83

Browse files
committed
added demo website to readme and simplified nginx configuration
1 parent 260d07d commit af79b83

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,3 @@ data
5050

5151
appsettings.json
5252

53-
nginx-certbot/*.conf

docker-compose-linux.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ services:
1414
build:
1515
context: ./nginx-certbot
1616
environment:
17-
- CERTBOT_EMAIL=xxxxxxxxxxxxxx
17+
CERTBOT_EMAIL: [email protected]
18+
ENVSUBST_VARS: DOMAIN
19+
DOMAIN: server.company.com
1820
ports:
1921
- 80:80
2022
- 443:443

docker-compose-windows.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ services:
1414
build:
1515
context: ./nginx-certbot
1616
environment:
17-
- CERTBOT_EMAIL=xxxxxxxxxxxxxx
17+
CERTBOT_EMAIL: [email protected]
18+
ENVSUBST_VARS: DOMAIN
19+
DOMAIN: server.company.com
1820
ports:
1921
- 80:80
2022
- 443:443

nginx-certbot/example/boiler.conf nginx-certbot/boiler.conf

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
2-
31
server {
42
listen 443 ssl;
5-
server_name server.company.com;
6-
ssl_certificate /etc/letsencrypt/live/server.company.com/fullchain.pem;
7-
ssl_certificate_key /etc/letsencrypt/live/server.company.com/privkey.pem;
3+
server_name ${DOMAIN};
4+
ssl_certificate /etc/letsencrypt/live/${DOMAIN}/fullchain.pem;
5+
ssl_certificate_key /etc/letsencrypt/live/${DOMAIN}/privkey.pem;
86

97
location / {
108
proxy_pass http://boiler:80;

readme.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A basic .NET Core website boilerplate using PostgreSQL for storage, adminer for db management, and Nginx for SSL certificates & routing.
44

5-
<!-- [Demo website.](https://netcore.demos.mtr.lt) -->
5+
[Demo website.](https://netcore.demos.matasr.com)
66

77
## Features
88

@@ -30,9 +30,8 @@ A basic .NET Core website boilerplate using PostgreSQL for storage, adminer for
3030

3131
## Configuration
3232

33-
1. Copy the boiler.conf from nginx-certbot/example to nginx-certbot/ and adjust according to your domain names. The domain should point to the IP of the machine you're running this project on.
34-
2. Open the docker-compose file you're going to use (depends on your platform) and set `CERTBOT_EMAIL=XXX` to your email for Let's Encrypt certificate generation.
35-
3. The file `appsettingsExample.json` needs to be renamed to `appsettings.json` with your own OAuth keys:
33+
1. Open the docker-compose file you're going to use (depends on your platform) and set `CERTBOT_EMAIL` to your email for Let's Encrypt certificate generation. Moreover, set `DOMAIN` to your domain name. The domain should point to the IP of the machine you're running this project on.
34+
2. The file `appsettingsExample.json` needs to be renamed to `appsettings.json` with your own OAuth keys:
3635

3736
- The process for obtaining a Google key is described [here](https://developers.google.com/identity/protocols/OAuth2).
3837
- The method to create a Github app in order to get an API key is described [here](https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/).

0 commit comments

Comments
 (0)