Skip to content

Instantly share code, notes, and snippets.

View Denver-sn's full-sized avatar
💭

DℰℕVℰℛ Denver-sn

💭
View GitHub Profile
@Denver-sn
Denver-sn / nginx-subdomains.md
Created November 25, 2023 00:29 — forked from rgwozdz/nginx-subdomains.md
2 node apps on one Ubuntu EC2, access via two different subdomains

create this file:

/etc/nginx/sites-available/crp-pmte-stage.spatialdevmo.com

This file will handle visits to crp-pmte-stage.spatialdevmo.com. A Node.js app running on port 5000 needs to be served. Give the file this content:

upstream crp-pmte-stage {
    server 127.0.0.1:5000;
}
@Denver-sn
Denver-sn / index.js
Created May 4, 2023 02:43 — forked from dmurawsky/index.js
How to make a page full height in Next.js
const FullHeightPage = () => (
<div>
Hello World!
<style global jsx>{`
html,
body,
body > div:first-child,
div#__next,
div#__next > div {
height: 100%;