SHARE
TWEET

Untitled

a guest Feb 21st, 2020 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen 80 default_server;
  3.     listen [::]:80 default_server;
  4.  
  5.     # SSL configuration
  6.     #
  7.     listen 443 ssl;
  8.     listen [::]:443 ssl;
  9.     #
  10.     # Note: You should disable gzip for SSL traffic.
  11.     # See: https://bugs.debian.org/773332
  12.     #
  13.     # Read up on ssl_ciphers to ensure a secure configuration.
  14.     # See: https://bugs.debian.org/765782
  15.     #
  16.     # Self signed certs generated by the ssl-cert package
  17.     # Don't use them in a production server!
  18.     #
  19.     # include snippets/snakeoil.conf;
  20.  
  21.     root /var/www/sourcer.app;
  22.  
  23.     # Add index.php to the list if you are using PHP
  24.     index index.html index.htm index.nginx-debian.html;
  25.  
  26.     server_name sourcer.app www.sourcer.app;
  27.  
  28.  
  29.     location / {
  30.         # First attempt to serve request as file, then
  31.         # as directory, then fall back to displaying a 404.
  32.         try_files $uri $uri/ =404;
  33.  
  34.         proxy_pass http://localhost:5050;
  35.         proxy_http_version 1.1;
  36.                 proxy_set_header Upgrade $http_upgrade;
  37.                 proxy_set_header Connection 'upgrade';
  38.                 proxy_set_header Host $host;
  39.                 proxy_cache_bypass $http_upgrade;
  40.  
  41.  
  42.     }
  43.  
  44.     # pass PHP scripts to FastCGI server
  45.     #
  46.     #location ~ \.php$ {
  47.     #   include snippets/fastcgi-php.conf;
  48.     #
  49.     #   # With php-fpm (or other unix sockets):
  50.     #   fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
  51.     #   # With php-cgi (or other tcp sockets):
  52.     #   fastcgi_pass 127.0.0.1:9000;
  53.     #}
  54.  
  55.     # deny access to .htaccess files, if Apache's document root
  56.     # concurs with nginx's one
  57.     #
  58.     #location ~ /\.ht {
  59.     #   deny all;
  60.     #}
  61. }
  62.  
  63.  
  64.  
  65. # Virtual Host configuration for example.com
  66. #
  67. # You can move that to a different file under sites-available/ and symlink that
  68. # to sites-enabled/ to enable it.
  69. #
  70. #server {
  71. #   listen 80;
  72. #   listen [::]:80;
  73. #
  74. #   server_name example.com;
  75. #
  76. #   root /var/www/example.com;
  77. #   index index.html;
  78. #
  79. #   location / {
  80. #       try_files $uri $uri/ =404;
  81. #   }
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