{"id":29659333,"url":"https://github.com/tasyakh/wallpaperio","last_synced_at":"2025-10-10T23:13:28.464Z","repository":{"id":303195833,"uuid":"998469165","full_name":"TasyaKh/wallpaperio","owner":"TasyaKh","description":"Autogenerated wallpapers everyday (AI)","archived":false,"fork":false,"pushed_at":"2025-07-18T07:23:19.000Z","size":35282,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-18T11:19:02.931Z","etag":null,"topics":["celery","fastapi","gin","golang","milvus","postgres","python","react","typescript"],"latest_commit_sha":null,"homepage":"https://wallpaperio.online","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TasyaKh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-08T17:12:52.000Z","updated_at":"2025-07-18T07:23:23.000Z","dependencies_parsed_at":"2025-07-06T09:44:22.914Z","dependency_job_id":null,"html_url":"https://github.com/TasyaKh/wallpaperio","commit_stats":null,"previous_names":["tasyakh/wallpaperio"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TasyaKh/wallpaperio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TasyaKh%2Fwallpaperio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TasyaKh%2Fwallpaperio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TasyaKh%2Fwallpaperio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TasyaKh%2Fwallpaperio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TasyaKh","download_url":"https://codeload.github.com/TasyaKh/wallpaperio/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TasyaKh%2Fwallpaperio/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266463560,"owners_count":23932904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["celery","fastapi","gin","golang","milvus","postgres","python","react","typescript"],"created_at":"2025-07-22T09:10:40.122Z","updated_at":"2025-10-10T23:13:28.392Z","avatar_url":"https://github.com/TasyaKh.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WallpaperIO\n\nA modern wallpaper generation and management platform with AI-powered image generation capabilities. (light/night themes)\n\n1) page main  with wallpapers\n\u003cimg width=\"200\" height=\"2000\" alt=\"2025-07-18 15 11 57 wallpaperio online 57200562e002\" src=\"https://github.com/user-attachments/assets/ff4fefec-37c5-4d57-94eb-facb00b6b166\" /\u003e\n\n2) preview one wallpaper with similar images\n\u003cimg width=\"200\" height=\"5071\" alt=\"2025-07-18 15 12 31 wallpaperio online 932306dcb9bf\" src=\"https://github.com/user-attachments/assets/1b85230b-1806-4dbc-aa24-c6c18c1bb45f\" /\u003e\n\n3) page categories\n\u003cimg width=\"200\" height=\"2019\" alt=\"2025-07-18 15 12 58 wallpaperio online 347a37376e92\" src=\"https://github.com/user-attachments/assets/11ec1983-c15f-4664-8953-48ccbb43a4fb\" /\u003e\n\n4) page found similar wallpapers by loaded image\n\u003cimg width=\"200\" height=\"6397\" alt=\"2025-07-18 15 13 57 wallpaperio online 3455581a8e8b\" src=\"https://github.com/user-attachments/assets/367c353e-adc8-4f40-8340-6e2e9223a64f\" /\u003e\n\n5) login/auth page\n\u003cimg width=\"200\" height=\"1654\" alt=\"2025-07-18 15 14 14 wallpaperio online 49037df11f13\" src=\"https://github.com/user-attachments/assets/1e60ddf5-f610-499c-9ec8-824fdb3b5918\" /\u003e\n\n6) page favorite images\n\u003cimg width=\"200\" height=\"2960\" alt=\"2025-07-18 15 14 34 wallpaperio online 3d8f60a29714\" src=\"https://github.com/user-attachments/assets/4aafb6fc-0de9-4bff-b77d-e21a2a39bca9\" /\u003e\n\n7) page image generation (for admin only)\n\u003cimg width=\"200\" height=\"1884\" alt=\"2025-07-18 15 21 25 wallpaperio online 103659d6f72c\" src=\"https://github.com/user-attachments/assets/f5ced2fc-f7c9-4e7e-8a54-b134f72ae83e\" /\u003e\n\n\n## 🚀 Features\n\n- AI-powered wallpaper generation\n- Real-time image processing\n- RESTful API for wallpaper management\n- Modern web frontend\n- SSL/HTTPS support\n- Automatic certificate renewal\n\n## 🏗️ Architecture\n\n- **Frontend**: React/Vite application\n- **Backend**: Go server with REST API\n- **Image Generator**: Python service with AI models\n- **Database**: PostgreSQL\n- **Cache**: Redis\n- **Vector Database**: Milvus\n- **Reverse Proxy**: Nginx with SSL\n- **Container Orchestration**: Docker Compose\n\n## 📋 Prerequisites\n\n- Docker and Docker Compose\n- Domain name pointing to your server\n- At least 4GB RAM (for Milvus)\n\n## 🛠️ Installation\n\n### 1. Clone the repository\n```bash\ngit clone \u003crepository-url\u003e\ncd wallpaperio\n```\n\n### 2. Set up environment variables\nCreate `.env` files in the following directories:\n- `server/.env.prod`\n- `server_generator/.env.prod`\n\n### 3. Start the services\n```bash\ndocker-compose up -d\n```\n\n## 🔒 SSL Certificate Setup\n\n### Initial Certificate Generation\n\n**Step 1:** Create directories for certbot\n```bash\nmkdir -p certbot/conf certbot/www\n```\n\n**Step 2:** Generate SSL certificates\n```bash\ndocker-compose run --rm certbot certonly \\\n  --webroot \\\n  --webroot-path=/var/www/certbot \\\n  --email AkitaSpam@gmail.com \\\n  --agree-tos \\\n  --no-eff-email \\\n  -d wallpaperio.online \\\n  -d www.wallpaperio.online\n```\n\n**Step 3:** Restart nginx to load SSL certificates\n```bash\ndocker-compose restart nginx\n```\n\n**Step 4:** Verify SSL is working\n```bash\ncurl -I https://wallpaperio.online\n```\n\n### Automatic Certificate Renewal\nAdd to crontab for monthly renewal:\n```bash\ncrontab -e\n```\n\nAdd this line:\n```\n0 12 1 * * cd /root/projects/wallpaperio \u0026\u0026 docker-compose run --rm certbot renew \u0026\u0026 docker-compose restart nginx\n```\n\nThis renews certificates on the 1st of every month at 12:00 PM UTC.\n\n## 🌐 Access Points\n\n- **Frontend**: https://wallpaperio.online\n- **API**: https://wallpaperio.online/api/\n- **Milvus Attu**: http://localhost:8000\n\n## 📁 Project Structure\n\n```\nwallpaperio/\n├── frontend/                 # React frontend\n├── server/                   # Go backend API\n├── server_generator/         # Python image generation service\n├── data/                     # Persistent data storage\n├── certbot/                  # SSL certificates\n│   ├── conf/                 # Certificate configuration\n│   └── www/                  # Webroot for validation\n├── nginx.conf               # Nginx configuration\n├── docker-compose.yml       # Container orchestration\n└── README.md               # This file\n```\n\n## 🔧 Configuration\n\n### Nginx Configuration\nThe `nginx.conf` file handles:\n- HTTP to HTTPS redirects\n- SSL certificate configuration\n- API proxy to Go server\n- Frontend proxy to React app\n\n### Docker Compose Services\n- **nginx**: Reverse proxy with SSL\n- **frontend**: React application\n- **go_server**: Go API server\n- **python_generator_server**: AI image generation\n- **celery_worker**: Background task processing\n- **postgres**: Database\n- **redis**: Cache and message broker\n- **milvus**: Vector database\n- **etcd**: Milvus dependency\n- **minio**: Milvus dependency\n- **attu**: Milvus management UI\n\n## 🚀 Deployment\n\n### Production Deployment\n1. Set up your domain DNS to point to your server\n2. Configure environment variables\n3. Generate SSL certificates\n4. Start services:\n   ```bash\n   docker-compose up -d\n   ```\n\n### SSL Certificate Management\n- **Manual renewal**: `docker-compose run --rm certbot renew`\n- **Check certificate status**: `docker-compose run --rm certbot certificates`\n- **Force renewal**: `docker-compose run --rm certbot renew --force-renewal`\n\n## 🔍 Monitoring\n\n### Check Service Status\n```bash\ndocker-compose ps\n```\n\n### View Logs\n```bash\n# All services\ndocker-compose logs\n\n# Specific service\ndocker-compose logs nginx\ndocker-compose logs go_server\ndocker-compose logs python_generator_server\n```\n\n### SSL Certificate Status\n```bash\n# Check certificate expiration\nopenssl x509 -in certbot/conf/live/wallpaperio.online/fullchain.pem -text -noout | grep -A 2 \"Validity\"\n```\n\n## 🛡️ Security\n\n- SSL/TLS encryption enabled\n- Automatic certificate renewal\n- Containerized services\n- Environment variable configuration\n- No hardcoded secrets\n\n## 🔄 Maintenance\n\n### Regular Tasks\n- Monitor certificate expiration\n- Check service logs for errors\n- Update Docker images periodically\n- Backup database data\n\n### Troubleshooting\n- **SSL issues**: Check certificate paths and nginx configuration\n- **Service not starting**: Check logs with `docker-compose logs \u003cservice\u003e`\n- **Certificate renewal fails**: Verify domain DNS settings\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftasyakh%2Fwallpaperio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftasyakh%2Fwallpaperio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftasyakh%2Fwallpaperio/lists"}