Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80; #listen [::]:80;
- #server_name 192.168.0.103 git;
- server_name git.myreserveddns.com;
- return 301 https://git.myreserveddns.com$request_uri;
- }
- server {
- # The IP that you forwarded in your router (nginx proxy)
- listen 192.168.0.101:443 ssl http2;
- # SSL config
- ssl on;
- ssl_certificate /etc/nginx/ssl/git/git.crt;
- ssl_certificate_key /etc/nginx/ssl/git/git.key;
- # Make site accessible from http://localhost/
- #server_name 192.168.0.103 git;
- server_name git.myreserveddns.com;
- # The internal IP of the VM that hosts your Apache config
- set $upstream 192.168.0.103;
- location / {
- proxy_pass_header Authorization;
- proxy_pass http://$upstream;
- #proxy_read_timeout 90;
- 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_http_version 1.1;
- #proxy_set_header X-Forwarded-Proto $scheme;
- proxy_set_header Connection "";
- proxy_buffering off;
- client_max_body_size 0;
- proxy_read_timeout 36000s;
- proxy_redirect off;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement