Skip to content

Instantly share code, notes, and snippets.

View webdelin's full-sized avatar
🏠
Working from home

Wendelin Gerein webdelin

🏠
Working from home
View GitHub Profile
@lukeocodes
lukeocodes / Breadcrumbs.vue
Last active April 2, 2024 14:01
A breadcrumbs component for Nuxt3
<script lang="ts" setup>
const route = useRoute();
const router = useRouter();
const getBreadcrumbs = () => {
const fullPath = route.path;
const requestPath = fullPath.startsWith("/")
? fullPath.substring(1)
: fullPath;
const crumbs = requestPath.split("/");
@wernersmit
wernersmit / plesk-nginx-extra-reverse-proxy.conf
Created March 7, 2017 19:12
Plesk Nginx Extra Config for Custom Reverse Proxy - nodejs app or other host IP
## If someone enters two slashes, '//' combine them into one
merge_slashes on;
## Make sure everything is forwarded to https://
if ($scheme = http) {
return 301 http://$server_name$request_uri;
}
## Remove trailing slashes