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
Setting session ID cookie for user 3722098653269536 | |
******** REQ SESSION USER | |
{ | |
id: 7, | |
provider_user_id: '3533a6ac-d255-462f-ad05-1fca49e65a04', | |
email: '[email protected]', | |
avatar_url: 'https://kingfisher-file-uploads-dev.s3.amazonaws.com/d17cbaac0fe23374ec371c47c1af02ff9844a6.svg', | |
display_name: 'Daniel Dyssegaard Kallick', | |
provider: 'microsoft', | |
uuid: '3722098653269536', |
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
worker_processes 1; | |
worker_rlimit_nofile 200000; | |
events { | |
worker_connections 16384; | |
} | |
http { | |
include mime.types; |
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 apt-get update | |
sudo apt-get -y install nginx certbot python3-certbot-nginx | |
#dnsname="warbler-azure.frameable.com" | |
#email="[email protected]" | |
if ! test -f /etc/letsencrypt/live/$dnsname/fullchain.pem; then | |
sudo certbot --nginx -d "$dnsname" \ | |
--email="$email" \ | |
--agree-tos \ |
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
if test ! -f /usr/share/keyrings/hashicorp-archive-keyring.gpg; then | |
curl -o- https://apt.releases.hashicorp.com/gpg | gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg | |
fi | |
if test ! -f /etc/apt/sources.list.d/hashicorp.list; then | |
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" \ | |
> /etc/apt/sources.list.d/hashicorp.list | |
fi | |
apt-get -y update |
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
{ | |
"bytes_sent": 2, | |
"host": "172.30.3.238", | |
"ip": "", | |
"log_type": "access", | |
"nginx_server_id": "${NOMAD_SHORT_ALLOC_ID}", | |
"referrer": "", | |
"request": "GET /healthcheck HTTP/1.1", | |
"request_time": 0, | |
"timestamp": "2023-12-06T18:24:07.092Z", |
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
if [[ $# -eq 0 ]] ; then | |
echo 'usage:' | |
echo 'bash ./tunnel.sh SUBDOMAIN LOCAL_PORT' | |
echo 'example: bash ./tunnel.sh daniel 8000' | |
echo 'you need our ssh key, kingfisher-alb in your ~/.ssh directory' | |
exit 0 | |
fi | |
port=$RANDOM |
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
# Elastic Beanstalk Nginx Configuration File | |
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log; | |
pid /var/run/nginx.pid; | |
worker_rlimit_nofile 131599; | |
events { | |
worker_connections 1024; |
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
const getUrl = async(url) => { | |
const resp = await fetch(url, { | |
headers: { | |
'Accept': 'application/json', | |
'Content-Type': 'application/json', | |
}, | |
method: 'GET', | |
}); | |
const res = resp.json(); | |
return res |
OlderNewer