Created
March 21, 2020 20:26
-
-
Save jsmrcaga/6e1b67fa193771b6337d9b6b06db5820 to your computer and use it in GitHub Desktop.
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
server { | |
listen 80; | |
server_name pgw.bottomatik.com; | |
rewrite ^ https://$server_name$request_uri? permanent; | |
} | |
server { | |
gzip on; | |
gzip_http_version 1.0; | |
gzip_min_length 256; | |
gzip_comp_level 2; | |
gzip_proxied any; | |
gzip_vary on; | |
gzip_buffers 32 4k; | |
gzip_types text/plain text/css application/javascript image/svg+xml; | |
# listen 80; | |
listen 443 ssl; | |
ssl_certificate /root/CERTS/PGW.BOTTOMATIK.COM/bundle.crt; | |
ssl_certificate_key /root/CERTS/PGW.BOTTOMATIK.COM/pgw_bottomatik_com.key; | |
#root /var/www/html; | |
server_name pgw.bottomatik.com; | |
location / { | |
proxy_set_header X-Readl-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
proxy_set_header Host $host; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_connect_timeout 1m; | |
proxy_send_timeout 1d; | |
proxy_read_timeout 1d; | |
proxy_pass http://localhost:9999; | |
} | |
location ~ /\.ht { | |
deny all; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment