Skip to content

Commit c410080

Browse files
committed
Update the appsettings
1 parent 7c8ee8f commit c410080

File tree

2 files changed

+5
-43
lines changed

2 files changed

+5
-43
lines changed

Alderto.Web/appsettings.json

-23
Original file line numberDiff line numberDiff line change
@@ -45,28 +45,5 @@
4545
"AllowedCorsOrigins": "https://localhost",
4646

4747
"ApiAuthority": "https://localhost/api"
48-
},
49-
50-
/**
51-
* Port for SSL. Do not change unless you really know what you are doing.
52-
*/
53-
"https_port": 443,
54-
55-
/**
56-
* Kestrel configuration.
57-
* For help see https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-3.1#endpoint-configuration
58-
*/
59-
"Kestrel": {
60-
"Endpoints": {
61-
/* If you wish to use SSL, uncomment the part "Https". Requires certificate present on the device. See Kestrel help for more info. */
62-
/*
63-
"Https": {
64-
"Url": "https://*"
65-
},
66-
*/
67-
"Http": {
68-
"Url": "http://*"
69-
}
70-
}
7148
}
7249
}

README.md

+5-20
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ A discord accountant bot with a Web user interface.
33

44
## Versions:
55
* Full version
6-
> Harder to set up, has Web user interface.
7-
6+
> Harder to set up, has Web user interface.
7+
88
* Lite version
99
> Faster, less setup time, cannot control it thru Web.
1010
@@ -17,7 +17,7 @@ Process:
1717
3) Find `appsettings.json` file and fill it out (see Configuration file below);
1818
4) Launch the bot using command `dotnet Alderto.Web.dll` (`dotnet Alderto.Bot.dll` for lite version).
1919
> Based on the configuration of the machine and `appsettings.json`, you may have to run it in administrator mode for port allocation (not applicable to lite version). adding `sudo` in front of the command on Linux would do the trick.
20-
20+
2121
### Configuration file
2222
Bot's configuration can be found at `appsettings.json` file.
2323
Tutorial how to set up the configuration:
@@ -31,24 +31,9 @@ Tutorial how to set up the configuration:
3131
### Https
3232
>In order to use SSL, you must first have a certificate present on the host device. Big cloud hosting providers, such as AWS of Azure can issue a certificate, otherwise you will have to issue one yourself. [Let's encrypt](https://letsencrypt.org/) is a project that can help you achieve that.
3333
34-
To activate SSL in `appsettings.json` remove the two comments surrounding `Kestrel:Endpoints:Https`:
35-
```
36-
"Kestrel": {
37-
"Endpoints": {
38-
/* If you wish to use SSL, uncomment the part "Https". Requires certificate present on the device. See Kestrel help for more info. */
39-
/* <- REMOVE!!!
40-
"Https": {
41-
"Url": "https://*"
42-
},
43-
*/ <- REMOVE!!!
44-
"Http": {
45-
"Url": "http://*"
46-
}
47-
}
48-
}
49-
```
34+
To activate SSL on Kestrel server, set the environment variable `ASPNETCORE_URLS=https://*`.
5035
## Development
51-
Requirements: [Visual Studio 2019](https://visualstudio.microsoft.com/vs/) with [.Net Core 3.0 **SDK**](https://dotnet.microsoft.com/download/dotnet-core/3.0), [Node.js version 10.9.0 or later](https://nodejs.org/en/) (for WebUI only)
36+
Requirements: [Visual Studio 2019](https://visualstudio.microsoft.com/vs/) with [.Net Core 3.1 **SDK**](https://dotnet.microsoft.com/download/dotnet-core/3.1), [Node.js version 10.9.0 or later](https://nodejs.org/en/) (for WebUI only)
5237

5338
Process:
5439
1) Clone the repository

0 commit comments

Comments
 (0)