SHARE
TWEET

Untitled

a guest Feb 16th, 2020 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.         listen 80;
  3.         listen [::]:80;
  4.         # SSL configuration
  5.         #
  6.         # listen 443 ssl default_server;
  7.         # listen [::]:443 ssl default_server;
  8.         #
  9.         # Note: You should disable gzip for SSL traffic.
  10.         # See: https://bugs.debian.org/773332
  11.         #
  12.         # Read up on ssl_ciphers to ensure a secure configuration.
  13.         # See: https://bugs.debian.org/765782
  14.         #
  15.         # Self signed certs generated by the ssl-cert package
  16.         # Don't use them in a production server!
  17.         #
  18.         # include snippets/snakeoil.conf;
  19.  
  20.         root /var/www/dev.fishpal.com;
  21.  
  22.         server_name _;
  23.  
  24.         # Add index.php to the list if you are using PHP
  25.         index index.html index.htm index.nginx-debian.html;
  26.  
  27.         location / {
  28.                 # First attempt to serve request as file, then
  29.                 # as directory, then fall back to displaying a 404.
  30.                 try_files $uri $uri/ =404;
  31.  
  32.         }
  33.  
  34.         location /api/ {
  35.  
  36.         proxy_pass          http://localhost:3000/;
  37.         proxy_http_version 1.1;
  38.         proxy_set_header    Host             $host;
  39.         proxy_set_header    X-Real-IP        $remote_addr;
  40.         proxy_set_header    X-Forwarded-For  $proxy_add_x_forwarded_for;
  41.         proxy_read_timeout 1800;
  42.         proxy_connect_timeout 1800;
  43.  
  44.         }
  45. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top