|
| 1 | +--- |
| 2 | +title: "GSoC ’25 Week 11 Update by Mebin J Thattil" |
| 3 | +excerpt: "Deploying SugarAI Continued" |
| 4 | +category: "DEVELOPER NEWS" |
| 5 | +date: "2025-08-17" |
| 6 | +slug: "2025-08-17-gsoc-25-mebinthattil-week11" |
| 7 | +author: "@/constants/MarkdownFiles/authors/mebin-thattil.md" |
| 8 | +tags: "gsoc25,sugarlabs,week11,mebinthattil,speak_activity" |
| 9 | +image: "assets/Images/GSOCxSpeak.png" |
| 10 | +--- |
| 11 | + |
| 12 | +# Week 11 Progress Report by Mebin J Thattil |
| 13 | + |
| 14 | +**Project:** [Speak Activity](https://github.com/sugarlabs/speak) |
| 15 | +**Mentors:** [Chihurumnaya Ibiam](https://github.com/chimosky), [Kshitij Shah](https://github.com/kshitijdshah99) |
| 16 | +**Assisting Mentors:** [Walter Bender](https://github.com/walterbender), [Devin Ulibarri](https://github.com/pikurasa) |
| 17 | +**Reporting Period:** 2025-08-10 - 2025-08-17 |
| 18 | + |
| 19 | +--- |
| 20 | + |
| 21 | +## Goals for This Week |
| 22 | + |
| 23 | +- **Goal 1:** Finish deployment of SugarAI and start with integration |
| 24 | + - **Subgoal 1:** Nginx proxy pass |
| 25 | + - **Subgoal 2:** SSL Certificates |
| 26 | + - **Subgoal 3:** `A record` creation and launch of [ai.sugarlabs.org](https://ai.sugarlabs.org) |
| 27 | + - **Subgoal 4:** Google OAuth and Github OAuth for login |
| 28 | + |
| 29 | +--- |
| 30 | + |
| 31 | +## This Week’s Progress |
| 32 | + |
| 33 | +### **1. Finishing up deployment** |
| 34 | + |
| 35 | +- The nginx proxy was created. It maps `port 8000` to `port 443`, enabling HTTPS access. |
| 36 | +The setup looks like: |
| 37 | +```nginx |
| 38 | +server { |
| 39 | + server_name ai.sugarlabs.org; |
| 40 | +
|
| 41 | + location / { |
| 42 | + proxy_pass http://localhost:8000; |
| 43 | + proxy_set_header Host $host; |
| 44 | + proxy_set_header X-Real-IP $remote_addr; |
| 45 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
| 46 | + proxy_set_header X-Forwarded-Proto $scheme; |
| 47 | + } |
| 48 | +
|
| 49 | + listen 443 ssl; # managed by Certbot |
| 50 | + ssl_certificate /etc/letsencrypt/live/ai.sugarlabs.org/fullchain.pem; # managed by Certbot |
| 51 | + ssl_certificate_key /etc/letsencrypt/live/ai.sugarlabs.org/privkey.pem; # managed by Certbot |
| 52 | + include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot |
| 53 | + ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot |
| 54 | +
|
| 55 | +
|
| 56 | +} |
| 57 | +
|
| 58 | +server { |
| 59 | + listen 443 ssl; |
| 60 | + server_name ai.sugarlabs.org; |
| 61 | +
|
| 62 | + ssl_certificate /etc/letsencrypt/live/ai.sugarlabs.org/fullchain.pem; |
| 63 | + ssl_certificate_key /etc/letsencrypt/live/ai.sugarlabs.org/privkey.pem; |
| 64 | +
|
| 65 | + location / { |
| 66 | + proxy_pass http://localhost:8000; |
| 67 | + proxy_set_header Host $host; |
| 68 | + proxy_set_header X-Real-IP $remote_addr; |
| 69 | + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
| 70 | + proxy_set_header X-Forwarded-Proto $scheme; |
| 71 | + } |
| 72 | +} |
| 73 | +``` |
| 74 | +- Next, the SSL certificates were created using [Let's Encrypt and Certbot](https://letsencrypt.org/). |
| 75 | +- An `A record` was created pointing to the static IP of our EC2 instance. The service can now be accessed at : [ai.sugarlabs.org](https://ai.sugarlabs.org/) |
| 76 | +- The Google OAuth was set up and registered under the google cloud account of `[email protected]`. The Github OAuth is yet to be done. ( _If any changes / support is needed related to Google OAuth in the future, you can reach out to me at [[email protected]](mailto:[email protected])_) |
| 77 | + |
| 78 | + |
| 79 | +So finally SugarAI is live!! You can access it via the API. For docs take a look at the [README](https://github.com/sugarlabs/sugar-ai?tab=readme-ov-file#test-api-endpoints). |
| 80 | + |
| 81 | +--- |
| 82 | + |
| 83 | +## Next Week’s Roadmap |
| 84 | + |
| 85 | +- Integration of LLM as brains |
| 86 | +- Write a `network_status.py` script or a function to check if user is connected to internet and decide which brain to use for chatbot (LLM / SLM) based on connectivity. |
| 87 | +- Work on personas implementation and UI changes required for that. |
| 88 | +- UI accomodation for accepting API key for SugarAI. |
| 89 | + |
| 90 | +--- |
| 91 | + |
| 92 | +## Acknowledgments |
| 93 | + |
| 94 | +Thank you to my mentors, the Sugar Labs community, and fellow GSoC contributors for their ongoing support. Special thanks to [Krish](https://www.sugarlabs.org/authors/krish-pandya), who also helped with the deployment and development of SugarAI. |
| 95 | + |
| 96 | +--- |
0 commit comments