Created
October 21, 2017 21:14
-
-
Save aspann/29dd780a6e8242c2a9b65f7f27b9bed9 to your computer and use it in GitHub Desktop.
vHost-file (nginx)
This file contains hidden or 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
| server { | |
| listen 443 ssl http2; | |
| listen [::]:443 ssl http2; | |
| server_name git.YOURDOMAIN.COM; | |
| ssl on; | |
| ssl_certificate /etc/letsencrypt/live/YOURDOMAIN.COM/fullchain.pem; | |
| ssl_certificate_key /etc/letsencrypt/live/YOURDOMAIN.COM/privkey.pem; | |
| add_header Strict-Transport-Security max-age=31536000; | |
| add_header X-Frame-Options DENY; | |
| expires -1; | |
| client_max_body_size 30M; | |
| location / { | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_set_header X-Forwarded-Proto $scheme; | |
| allow all; | |
| proxy_pass http://localhost:3000/; | |
| proxy_redirect http://localhost:3000 https://git.YOURDOMAIN.COM; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment