-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To make it easier to use a reverse proxy with PyCA, this patch add some example configuration files for nginx.
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# <server_name must be replaced with the actuall server name> | ||
# | ||
# If installed, the snakeoil certificate is an automatically generated self | ||
# signed certificate. For a proper installation a proper certificate like one | ||
# from https://letsencrypt.org/ is needed. | ||
|
||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name _; | ||
location / { | ||
return 302 https://<server_name>$request_uri; | ||
} | ||
} | ||
|
||
server { | ||
listen 443 ssl http2; | ||
listen [::]:443 ssl http2; | ||
server_name <server_name>; | ||
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem; | ||
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key; | ||
|
||
location / { | ||
proxy_pass http://127.0.0.1:8000; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
location / { | ||
proxy_pass http://127.0.0.1:8000; | ||
} | ||
} |