Last active
July 15, 2018 17:58
-
-
Save tonis2/d7cd4dede4434b5281621eff1fde1ac3 to your computer and use it in GitHub Desktop.
NGINX server app
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 80; | |
| gzip on; | |
| gzip_http_version 1.1; | |
| gzip_comp_level 3; | |
| gzip_proxied any; | |
| gzip_types *; | |
| source_charset utf-8; | |
| charset utf-8; | |
| proxy_read_timeout 600s; | |
| proxy_send_timeout 600s; | |
| root /home/ubuntu/web; | |
| index index.html; | |
| server_name landing.dev.weatherpro.eu; | |
| location / { | |
| try_files $uri $uri/ /index.html; | |
| } | |
| location /api { | |
| proxy_pass http://localhost:8080; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| } | |
| listen [::]:443 http2 ssl ipv6only=on; # managed by Certbot | |
| listen 443 http2 ssl; # managed by Certbot | |
| ssl_certificate /etc/letsencrypt/live/api.dev.weatherpro.eu/fullchain.pem; # managed by Certbot | |
| ssl_certificate_key /etc/letsencrypt/live/api.dev.weatherpro.eu/privkey.pem; # managed by Certbot | |
| include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot | |
| ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment