Advertisement
Guest User

Untitled

a guest
Jul 6th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.25 KB | None | 0 0
  1. server {
  2.     listen 80;
  3.     listen [::]:80;
  4.  
  5.     server_tokens off;
  6.     server_name explorer.temtum.com;
  7.  
  8.     return 301 https://$server_name$request_uri;
  9. }
  10.  
  11. upstream explorer {
  12.         server 159.89.101.35;
  13.         server 209.97.181.36;
  14.     server 188.166.1.234;
  15. }
  16.  
  17. server {
  18.     listen 443 ssl;
  19.  
  20.     ssl on;
  21.     ssl_certificate /etc/nginx/ssl/certificate.pem;
  22.     ssl_certificate_key /etc/nginx/ssl/private.key;
  23.     ssl_protocols TLSv1.1 TLSv1.2;
  24.  
  25.     server_tokens off;
  26.     client_max_body_size 10m;
  27.  
  28.     server_name explorer.temtum.com;
  29.  
  30.     root /home/explorer/dist;
  31.     index index.html;
  32.  
  33.     location /api {
  34.         proxy_pass http://explorer;
  35.     }
  36.    
  37.     location / {
  38.         try_files $uri $uri/ @rewrites;
  39.     }
  40.  
  41.     location @rewrites {
  42.         rewrite ^(.+)$ /index.html last;
  43.     }
  44.    
  45.     location /apple-app-site-association {
  46.         auth_basic off;
  47.         default_type application/pkcs7-mime;
  48.     }
  49.    
  50.     location /assetlinks.json {
  51.         auth_basic off;
  52.                 default_type application/pkcs7-mime;
  53.         }
  54.    
  55.     location /.well-known/assetlinks.json {
  56.         auth_basic off;
  57.         default_type application/pkcs7-mime;
  58.         }
  59.  
  60.     location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
  61.         auth_basic off;
  62.         expires max;
  63.         add_header Pragma public;
  64.         add_header Cache-Control "public, must-revalidate, proxy-revalidate";
  65.     }
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement