-
Notifications
You must be signed in to change notification settings - Fork 0
/
wai-enforce-https.cabal
97 lines (89 loc) · 3.2 KB
/
wai-enforce-https.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
-- Initial wai-enforce-https.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
name: wai-enforce-https
version: 1.0.0.0
synopsis: Enforce HTTPS in Wai server app safely.
description: Wai middleware enforcing HTTPS protocol on any incoming request. In case of non-encrypted HTTP, traffic is redirected using 301 Permanent Redirect or optionally 307 Temporary Redirect. Middleware has compatibility modes for various reverse proxies (load balancers) and therefore can be used with Heroku, Google Cloud (Ingress), Azure or any other type of PAS or Cloud provider.
license: BSD3
license-file: LICENSE
author: Marek Fajkus
maintainer: marek.faj@gmail.com
-- copyright:
category: Web
build-type: Simple
extra-source-files: README.md
, CHANGELOG.md
cabal-version: >=1.10
homepage: https://github.com/turboMaCk/wai-enforce-https
tested-with: GHC == 7.10.3
, GHC == 7.8.4
, GHC == 7.6.3
, GHC == 8.4.4
, GHC == 8.6.5
data-files: examples/cert.pem
, examples/key.pem
Flag examples
Description: Build example projects
Default: False
library
hs-source-dirs: lib
exposed-modules: Network.Wai.Middleware.EnforceHTTPS
, Network.HTTP.Forwarded
-- other-modules:
-- other-extensions:
build-depends: base >= 4 && < 5
, wai
, network
, http-types
, bytestring
, text
, case-insensitive
default-language: Haskell2010
test-suite spec
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
other-modules: EnforceHTTPSSpec
, ForwardedSpec
build-depends: base
, hspec
, wai-enforce-https
, wai
, wai-extra
, http-types
, bytestring
, case-insensitive
ghc-options: -Wall
default-language: Haskell2010
executable example-tls
if flag(examples)
buildable: True
else
buildable: False
hs-source-dirs: examples
main-is: TLSApp.hs
build-depends: base
, wai-enforce-https
, wai
, warp
, warp-tls
, http-types
ghc-options: -Wall
default-language: Haskell2010
executable example-proxy
if flag(examples)
buildable: True
else
buildable: False
hs-source-dirs: examples
main-is: Proxy.hs
build-depends: base
, wai-enforce-https
, wai
, warp
, http-types
ghc-options: -Wall
default-language: Haskell2010
source-repository head
type: git
location: https://github.com/turboMaCk/wai-enforce-https.git