Skip to content

Instantly share code, notes, and snippets.

View fedeaguilera's full-sized avatar
😄

Aguilera WebDeveloper fedeaguilera

😄
View GitHub Profile
@fgilio
fgilio / axios-catch-error.js
Last active November 20, 2023 18:25
Catch request errors with Axios
/*
* Handling Errors using async/await
* Has to be used inside an async function
*/
try {
const response = await axios.get('https://your.site/api/v1/bla/ble/bli');
// Success 🎉
console.log(response);
} catch (error) {
// Error 😨
@analogic
analogic / docker-compose.yml
Last active February 20, 2024 14:20
Poste.io (with Lets Encrypt) + Nginx reverse proxy + Nginx Lets encrypt companion
version: '3'
services:
nginx-proxy:
image: jwilder/nginx-proxy
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
container_name: nginx-proxy
restart: unless-stopped
ports: