Skip to content

Commit 56dfd4b

Browse files
authored
Merge pull request #134 from frankhommers/vytautask-ssl-support-docs
Added SSL support docs
2 parents d4e20b8 + dcd659f commit 56dfd4b

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

README.md

+20-14
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11

2-
Hangfire.PostgreSql
3-
===================
2+
# Hangfire.PostgreSql
43
[![Build status](https://ci.appveyor.com/api/projects/status/a01vpyliv5mh9xac/branch/master?svg=true)](https://ci.appveyor.com/project/vytautask/hangfire-postgresql-lel5h/branch/master)
54

65
This is an plugin to the Hangfire to enable PostgreSQL as a storage system.
76
Read about hangfire here: https://github.com/HangfireIO/Hangfire#hangfire-
87
and here: http://hangfire.io/
98

10-
Instructions
11-
------------
12-
For .NET
13-
---
9+
## Instructions
10+
### For .NET
1411
Install Hangfire, see https://github.com/HangfireIO/Hangfire#installation
1512

1613
Download all files from this repository, add the Hangfire.PostgreSql.csproj to your solution.
@@ -22,8 +19,7 @@ app.UseHangfireServer(new BackgroundJobServerOptions(),
2219
app.UseHangfireDashboard();
2320
```
2421

25-
For ASP.NET Core
26-
---
22+
### For ASP.NET Core
2723
First, additional NuGet packages needs installation:
2824
* Hangfire
2925
* Hangfire.AspNetCore
@@ -45,17 +41,27 @@ And... That's it. You are ready to go. Also there exists sample application [her
4541

4642
If you encounter any issues/bugs or have idea of a feature regarding Hangfire.Postgresql, [create us an issue](https://github.com/frankhommers/Hangfire.PostgreSql/issues/new). Thanks!
4743

48-
Related Projects
49-
-----------------
5044

51-
* [Hangfire.Core](https://github.com/HangfireIO/Hangfire)
52-
53-
License
54-
========
45+
### Enabling SSL support
46+
SSL support can be enabled for Hangfire.PostgreSql library using the following mechanism:
47+
```csharp
48+
config.UsePostgreSqlStorage(new DefaultConnectionBuilder(
49+
options.HangfireDatabaseConnectionString,
50+
connection =>
51+
{
52+
connection.ProvideClientCertificatesCallback += clientCerts =>
53+
{
54+
clientCerts.Add(X509Certificate.CreateFromCertFile("[CERT_FILENAME]"));
55+
};
56+
}));
57+
```
5558

59+
### License
5660
Copyright © 2014-2019 Frank Hommers http://hmm.rs/Hangfire.PostgreSql and others (Burhan Irmikci (barhun), Zachary Sims(zsims), kgamecarter, Stafford Williams (staff0rd), briangweber, Viktor Svyatokha (ahydrax), Christopher Dresel (Dresel), Vytautas Kasparavičius (vytautask), Vincent Vrijburg.
5761

5862
Hangfire.PostgreSql is an Open Source project licensed under the terms of the LGPLv3 license. Please see http://www.gnu.org/licenses/lgpl-3.0.html for license text or COPYING.LESSER file distributed with the source code.
5963

6064
This work is based on the work of Sergey Odinokov, author of Hangfire. <http://hangfire.io/>
6165

66+
### Related Projects
67+
* [Hangfire.Core](https://github.com/HangfireIO/Hangfire)

0 commit comments

Comments
 (0)