diff --git a/README.md b/README.md index 064bd08..76bd59c 100644 --- a/README.md +++ b/README.md @@ -1,85 +1,48 @@ -![Astro Sphere Lighthouse Score](_astrosphere.jpg) +# Spaghet.io -Astro Sphere is a static, minimalist, lightweight, lightning fast portfolio and blog theme based on my personal website. +Welcome to my personal website! This site showcases my projects, blog posts, and professional experience. It's built with Astro and hosted using a modern deployment pipeline. -It is primarily Astro, Tailwind and Typescript, with a very small amount of SolidJS for stateful components. +## Deployment Pipeline -## πŸ“‹ Features +My website follows a robust deployment workflow: -- βœ… 100/100 Lighthouse performance -- βœ… Responsive -- βœ… Accessible -- βœ… SEO-friendly -- βœ… Typesafe -- βœ… Minimal style -- βœ… Light/Dark Theme -- βœ… Animated UI -- βœ… Tailwind styling -- βœ… Auto generated sitemap -- βœ… Auto generated RSS Feed -- βœ… Markdown support -- βœ… MDX Support (components in your markdown) -- βœ… Searchable content (posts and projects) -- βœ… Code Blocks - copy to clipboard +1. **Development**: I develop content and code locally using Gitea as my Git hosting solution +2. **Auto-push**: Changes are automatically pushed from Gitea to GitHub via configured webhooks +3. **Hosting**: The site is hosted on Appwrite, which provides a scalable and secure hosting environment +4. **Delivery**: NGINX reverse proxy handles routing and serves content with optimal performance -## πŸ’― Lighthouse score -![Astro Sphere Lighthouse Score](_lighthouse.png) +This pipeline ensures that my website is always up-to-date with the latest changes while leveraging modern hosting technologies. -## πŸ•ŠοΈ Lightweight -All pages under 100kb (including fonts) +## Site Components -## ⚑︎ Fast -Rendered in ~40ms on localhost +This website is built using Astro with the following key components: -## πŸ“„ Configuration +- **Blog**: Articles about technology, development, and personal insights +- **Projects**: Showcasing my various projects and contributions +- **Work Experience**: Professional background and career history +- **Legal**: Privacy policy and terms of service -The blog posts on the demo serve as the documentation and configuration. +## Technologies Used -## πŸ’» Commands +- **Framework**: Astro (Static site generation) +- **Styling**: Tailwind CSS +- **TypeScript**: Type-safe development +- **Deployment**: Gitea β†’ GitHub β†’ Appwrite β†’ NGINX reverse proxy -All commands are run from the root of the project, from a terminal: +## Getting Started -Replace npm with your package manager of choice. `npm`, `pnpm`, `yarn`, `bun`, etc +To run this site locally: -| Command | Action | -| :------------------------ | :----------------------------------------------- | -| `npm install` | Installs dependencies | -| `npm run dev` | Starts local dev server at `localhost:4321` | -| `npm run dev:network` | Starts dev server on local network | -| `npm run sync` | Generates TypeScript types for all Astro modules.| -| `npm run build` | Build your production site to `./dist/` | -| `npm run preview` | Preview your build locally, before deploying | -| `npm run preview:network` | Starts preview server on local network | -| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` | -| `npm run astro -- --help` | Get help using the Astro CLI | -| `npm run lint` | Run ESLint | -| `npm run lint:fix` | Auto-fix ESLint issues | +```bash +# Install dependencies +npm install -## πŸ—ΊοΈ Roadmap +# Start development server +npm run dev +``` -A few features I plan to implement -- ⬜ Article Pages - Table of Contents -- ⬜ Article Pages - Share on social media +For more information about the Astro framework and its features, please refer to the [Astro documentation](https://docs.astro.build/). -## ✨ Acknowledgement - -Theme inspired by [Paco Coursey](https://paco.me/), [Lee Robinson](https://leerob.io/) and [Hayden Bleasel](https://www.haydenbleasel.com/) - - -## πŸ›οΈ License - -MIT - - -# 1.0.1 Update - -Added ability to run dev and preview on local network. -added npm run dev:network -added npm run preview:network - -Added slightly more particle density in both light and dark mode. - -Added subtle dark mode star and meteor animations. - -Removed eslint config +## License +This project is licensed under the MIT License - see the LICENSE file for details. diff --git a/src/content/blog/02-appwrite-nginx-reverse-proxy-fix/index.md b/src/content/blog/02-appwrite-nginx-reverse-proxy-fix/index.md new file mode 100644 index 0000000..5db83c0 --- /dev/null +++ b/src/content/blog/02-appwrite-nginx-reverse-proxy-fix/index.md @@ -0,0 +1,66 @@ +--- +title: "Fixing Appwrite Issues: Correcting NGINX Forwarding and Reverse Proxy Configuration" +summary: "A detailed walkthrough of how I resolved nginx forwarding issues to properly configure reverse proxy redirection for my Appwrite deployments." +date: "Aug 13 2025" +draft: false +tags: +- Tutorial +- Appwrite +- NGINX +- Reverse Proxy +- Docker +- Troubleshooting +--- + +As someone who loves to dive deep into technical challenges, I recently encountered a frustrating issue with my Appwrite setup that required some serious troubleshooting. The problem was related to nginx forwarding and reverse proxy configuration, which prevented my deployed websites from being properly accessible. + +## The Problem + +I was working on deploying multiple websites using Appwrite as part of my comprehensive Docker container ecosystem. My setup includes: +- Appwrite for backend services and database management +- NGINX Proxy Manager (NPM) to expose sites via HTTPS +- A robust Docker infrastructure supporting various services + +The issue occurred when I tried to access my newly deployed websites through the reverse proxy. Instead of seeing my content, I was encountering errors or being redirected incorrectly. + +## Root Cause Analysis + +After extensive debugging, I discovered that the problem stemmed from improper nginx configuration for forwarding requests to Appwrite and the correct routing of those requests through my reverse proxy setup. + +## The Solution + +I had to make several key adjustments: + +### 1. Ensuring Proper Reverse Proxy Configuration + +Next, I made sure that the reverse proxy was correctly redirecting to my new websites: + +```nginx +location / { + proxy_pass http://your-appwrite-container:80; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; +} +``` + +## Key Takeaways + +This experience taught me several important lessons about reverse proxy configuration in Docker environments: + +1. **Network Configuration is Critical**: Make sure all containers are on the same network and can communicate properly. + +2. **Header Settings Matter**: Properly setting `X-Forwarded-*` headers ensures that applications receive correct information about the original request. + +3. **Testing Each Component**: When troubleshooting, test individual components (nginx, appwrite, docker networks) to isolate the root cause. + +4. **Documentation**: Keep detailed notes of configuration changes for future reference and easier debugging. + +## Final Result + +After implementing these fixes, my Appwrite setup was working perfectly with proper nginx forwarding and reverse proxy redirection. I could now access all my deployed websites through the correct HTTPS endpoints managed by NGINX Proxy Manager. + +This experience reinforced the importance of understanding how different components in a Docker ecosystem interact with each other, especially when it comes to networking and proxy configurations. + +The solution not only fixed my immediate problem but also improved my overall understanding of how to properly configure reverse proxies for complex applications like Appwrite. This knowledge will be invaluable as I continue to expand my infrastructure and deploy more services. diff --git a/src/content/projects/appwrite/index.md b/src/content/projects/appwrite/index.md index 8e4afe1..3b612f5 100644 --- a/src/content/projects/appwrite/index.md +++ b/src/content/projects/appwrite/index.md @@ -9,8 +9,7 @@ tags: - Authentication - Database - API -demoUrl: https://appwrite.io -repoUrl: https://github.com/yourusername/appwrite-integration +demoUrl: https://appdev.spaghet.io/ --- Implementation of Appwrite as a backend solution for modern web applications. This project demonstrates the integration of Appwrite's comprehensive backend services including authentication, database management, file storage, and cloud functions. diff --git a/src/content/projects/astro-profile/index.md b/src/content/projects/astro-profile/index.md index 1fce6bf..3e350ec 100644 --- a/src/content/projects/astro-profile/index.md +++ b/src/content/projects/astro-profile/index.md @@ -9,8 +9,8 @@ tags: - Tailwind CSS - JavaScript - TypeScript -demoUrl: https://spaghet.tech -repoUrl: https://github.com/yourusername/astro-profile +demoUrl: https://home.spaghet.io +repoUrl: https://github.com/spaghetgaming/Spaghet.io --- A modern personal portfolio website showcasing my work, projects, and technical expertise. Built with Astro for optimal performance and SEO, utilizing React components for interactive elements, and styled with Tailwind CSS for responsive design. diff --git a/src/content/projects/gitea/index.md b/src/content/projects/gitea/index.md index 2a8e381..c578c39 100644 --- a/src/content/projects/gitea/index.md +++ b/src/content/projects/gitea/index.md @@ -9,8 +9,7 @@ tags: - CI/CD - DevOps - Docker -demoUrl: https://gitea.io -repoUrl: https://github.com/yourusername/gitea-implementation +demoUrl: https://gitea.spaghet.io --- Deployment and configuration of Gitea as a self-hosted Git service for version control and continuous integration. This implementation provides a comprehensive solution for managing code repositories, tracking issues, and automating development workflows. diff --git a/src/content/projects/home-system/index.md b/src/content/projects/home-system/index.md index bced52d..f3dd1c4 100644 --- a/src/content/projects/home-system/index.md +++ b/src/content/projects/home-system/index.md @@ -15,8 +15,6 @@ tags: - Node-RED - Authentik - LDAP -demoUrl: https://spaghet.io -repoUrl: https://github.com/yourusername/home-system --- Designed and maintained a scalable Docker container ecosystem supporting PostgreSQL, MariaDB, MySQL, MongoDB, Redis, and Minio for high-availability applications, ensuring robust data storage, caching, and object storage solutions.