Skip to content

Instantly share code, notes, and snippets.

View lego5621's full-sized avatar
💭
I'm here by accident...

Averyanov Oleg lego5621

💭
I'm here by accident...
  • X5 Digital
  • Moscow
View GitHub Profile
@lego5621
lego5621 / vue_nginx.md
Created September 26, 2024 14:44 — forked from zmts/vue_nginx.md
Deploy Vue.js on custom route via NGINX

Deploy Vue.js on custom route via NGINX

Необходимо реализовать такой роутинг через NGINX

  • /a/* (user dashboard, SPA/Vue.js)
  • /* (все кроме /a/* тулит на proxy pass в Nuxt SSR)

Конфиг NGINX'a

map $sent_http_content_type $expires {
    "text/html" epoch;
@lego5621
lego5621 / folder_structure.md
Created August 8, 2024 11:30 — forked from ayoubzulfiqar/folder_structure.md
The Folder Structure for Every Golang Project

Go - The Ultimate Folder Structure

Organizing your Go (Golang) project's folder structure can help improve code readability, maintainability, and scalability. While there is no one-size-fits-all structure, here's a common folder structure for a Go project:

project-root/
    ├── cmd/
    │   ├── your-app-name/
    │   │   ├── main.go         # Application entry point
    │   │   └── ...             # Other application-specific files