https://github.com/comir/basic-nginx-proxy-ssl
Basic nginx reverse proxy config with SSL
https://github.com/comir/basic-nginx-proxy-ssl
hacktoberfest nginx
Last synced: 11 months ago
JSON representation
Basic nginx reverse proxy config with SSL
- Host: GitHub
- URL: https://github.com/comir/basic-nginx-proxy-ssl
- Owner: ComiR
- Created: 2021-10-23T17:37:52.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-24T19:06:33.000Z (over 4 years ago)
- Last Synced: 2025-05-14T14:33:13.525Z (about 1 year ago)
- Topics: hacktoberfest, nginx
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nginx Reverse Proxy with SSL
This is a config template for a nginx reverse proxy with SSL termination.
## Requirements
### Extra Files
* You'll need a `nginx.conf` which will `include conf.d/*.conf;` in the `http` section.
Otherwise, you'll need to figure out what's the best way for you to include the configuration.
* SSL certificate files `server.pem` and `server-key.pem` in directory `certs/`.
* `extra/dhparam.pem`, which you'll have to generate via `openssl dhparam -out extra/dhparam.pem 4096` (this can happen anywhere, where `openssl` is available, i.e. this does not have to happen on the server itself).
### Adjustments
* Domain name of the proxy server: `server_name` in [vhost.conf](conf.d/vhost.conf).
* Host of the server without SSL behind this proxy: `proxy_pass` in [vhost.conf](conf.d/vhost.conf).
* If you're not using docker, you need to adjust the IP of the DNS: `resolver` in [ssl.conf](mixins/ssl.conf).