⬅️ FullStack for front end dev (Jem Young)

Nginx Config

Redirects (instead of using express)

# 301 is permanent redirect
# 302 is temp redirect
location /help {
return 301 https://developer.mozilla.org/en-US/;
}

Adding a subdomain

server {
        listen 80;    
listen [::]80; # IPV6 notation
 
       server_name test.jemisthe.best;
 
        location / {
           proxy_pass http://localhost:3000;
          }
}

File compression