This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { | |
| Route, | |
| Redirect, | |
| RouteProps, | |
| } from "react-router-dom"; | |
| import { useAppSelector } from 'app/hooks'; | |
| import { selectAuth } from 'features/authentication/authSlice'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. certbot --nginx certonly -n -d domain1.com | |
| 2. update the certificate on nginx config of the domain in /etc/nginx/conf.d | |
| 3. sudo service nginx restart | |
| source: https://certbot.eff.org/docs/using.html#renewing-certificates |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo yum install -y gcc libstdc+-devel gcc-c+ fuse fuse-devel curl-devel libxml2-devel mailcap automake openssl-devel git gcc-c++ | |
| git clone https://github.com/s3fs-fuse/s3fs-fuse | |
| cd s3fs-fuse/ | |
| ./autogen.sh | |
| ./configure --prefix=/usr --with-openssl | |
| make | |
| sudo make install | |
| docker plugin install rexray/s3fs:latest S3FS_REGION=us-east-1 S3FS_OPTIONS="allow_other,iam_role=auto,umask=000" LIBSTORAGE_INTEGRATION_VOLUME_OPERATIONS_MOUNT_ROOTPATH=/ --grant-all-permissions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Setup nginx: https://www.nginx.com/blog/setting-up-nginx/ | |
| Setup letscrypt: https://medium.com/@victorleungtw/enable-https-on-aws-ec2-instance-with-node-js-and-nginx-on-ubuntu-server-15dad4864e11 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Item 1 | |
| var foo = 'hello'; | |
| (function() { | |
| var foo = foo || 'world'; | |
| console.log(foo); | |
| })(); | |
| // Question: What is the value of foo? |