Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- location ~ /.well-known {
- allow all;
- }
- listen 80 default_server;
- listen [::]:80 default_server;
- server_name mydomain.com;
- return 301 https://$server_name$request_uri;
- }
- server {
- listen 443 ssl http2 default_server;
- listen [::]:443 ssl http2 default_server;
- include snippets/ssl-mydomain.com.conf;
- include snippets/ssl-params.conf;
- root /var/www/html;
- # Add index.php to the list if you are using PHP
- index index.html index.htm index.nginx-debian.html;
- server_name _;
- location / {
- # First attempt to serve request as file, then
- # as directory, then fall back to displaying a 404.
- try_files $uri $uri/ =404;
- proxy_pass http://localhost:3000;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection 'upgrade';
- proxy_set_header Host $host;
- proxy_cache_bypass $http_upgrade;
- }
- location /dash {
- proxy_pass http://localhost:3000;
- }
- location ~^/(images/|img/|javascripts/|js/|css/|stylesheets/|flash/|media/|static/|robots.txt|humans.txt|favicon.ico) {
- root /var/www/html/public;
- access_log off;
- expires max;
- }
- }
Add Comment
Please, Sign In to add comment