I hereby claim:
- I am majudhu on github.
- I am majudhu (https://keybase.io/majudhu) on keybase.
- I have a public key whose fingerprint is D575 0441 16D7 D92C D492 A038 95E6 A79D 7B19 0AC5
To claim this, I am signing this object:
server { | |
server_name example.com; | |
client_max_body_size 100M; # allow huge uploads, upto 100MB | |
root /home/pm2/nextapp/public; # serve static files from public dir with nginx | |
try_files $uri @next; # serve static files with nginx, fallback to nextjs on not found | |
location @next { |
server { | |
server_name example.com; | |
client_max_body_size 100M; # allow huge uploads, upto 100MB | |
root /home/user/example/public/; # serve static files from public dir with nginx | |
try_files $uri @remix; # serve static files with nginx, fallback to nextjs on not found | |
location /build { |
openssl req -x509 -newkey rsa:4096 -nodes -sha256 -keyout /etc/ssl/private/ssl-cert-snakeoil.key -out /etc/ssl/certs/ssl-cert-snakeoil.pem -days 3650 -subj "/CN=<$PUBLIC_IP_ADDRESS>" |
I hereby claim:
To claim this, I am signing this object:
proxy_headers_hash_max_size 1024; | |
proxy_headers_hash_bucket_size 128; | |
# https://www.cloudflare.com/ips/ | |
set_real_ip_from 103.21.244.0/22; | |
set_real_ip_from 103.22.200.0/22; | |
set_real_ip_from 103.31.4.0/22; | |
set_real_ip_from 104.16.0.0/13; | |
set_real_ip_from 104.24.0.0/14; |
const API_URL = 'http://localhost:1337/api/'; | |
const OPTIONS = { headers: { Authorization: `Bearer ${TOKEN}` } }; | |
async function query(path) { | |
return (await fetch(API_URL + path, OPTIONS)).json(); | |
} | |
export async function getList(path) { | |
const data = await query(path); | |
return data.data.map(({ id, attributes }) => ({ id, ...attributes })); |
internal: 0.0.0.0 port=8888 | |
external: eth0 | |
socksmethod: none | |
clientmethod: none | |
client pass { | |
from: 0.0.0.0/0 to: 0.0.0.0/0 | |
} |
GRUB_DEFAULT=saved | |
GRUB_TIMEOUT=1 | |
GRUB_TIMEOUT_STYLE=hidden | |
GRUB_DISTRIBUTOR="Manjaro" | |
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash apparmor=1 security=apparmor udev.log_priority=3 udev.log_priority=3 noirqdebug pci=noaer i915.enable_psr=0 idle=nomwait i915.enable_dc=0 i915.enable_fbc=0 processor.max_cstate=1 rcu_nobs=0-11 i915.enable_gvt=1 kvm.ignore_msrs=1" | |
GRUB_CMDLINE_LINUX="" | |
# If you want to enable the save default function, uncomment the following | |
# line, and set GRUB_DEFAULT to saved. | |
GRUB_SAVEDEFAULT=true |
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mDMEXw8Q9hYJKwYBBAHaRw8BAQdAPqAvsfCNNRE7crfTijQUWOPA5cDGSP2+xu/h | |
U+qchZe0LE1hanVkaHUgKG1hanVkaHUuY28pIDxtYWp1ZGh1LnN1cEBnbWFpbC5j | |
b20+iJYEExYIAD4WIQTVdQRBFtfZLNSSoDiV5qedexkKxQUCXw8Q9gIbAwUJCWYB | |
gAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRCV5qedexkKxRsXAPkBkLsb1AXG | |
sPNdG5W11Sw5X40prgH3QxqB1GVv+y43uwEAxPjXh7ulz9TCtJK6H23jm2TpJdO2 | |
k7WMX6WDknJP2AO4OARfDxD2EgorBgEEAZdVAQUBAQdAN7MwsW6QIYSo5vlws56s | |
6FyV7uQOG/8M75F0VERvwmkDAQgHiH4EGBYIACYWIQTVdQRBFtfZLNSSoDiV5qed | |
exkKxQUCXw8Q9gIbDAUJCWYBgAAKCRCV5qedexkKxYoAAQCz7w5OiZMU+bB4dscF |
proxy_cache_path /var/cache/nginx keys_zone=my_cache:20m use_temp_path=off; | |
proxy_cache my_cache; | |
proxy_cache_lock on; | |
proxy_cache_lock_timeout 20s; | |
map $http_authorization $cachecontrol { | |
"" "public, max-age=10, s-maxage=5, stale-while-revalidate=20"; | |
} | |
server { |