Commit graph

3 commits

Author SHA1 Message Date
Kumi 14b7d088a0
feat: dynamic IP service domain resolution
Replaced static IP service URLs with dynamic hostname-based URLs in `getMyIP` function to ensure the IP service domain matches the current website's domain, excluding the 'www' prefix. This change enhances flexibility and adaptability, allowing the IP fetching functionality to work seamlessly across different deployments without needing manual URL updates for each domain.

- Removes hard-coded IP service domain.
- Utilizes `window.location.hostname` for dynamic domain resolution.
- Improves service compatibility across varying deployments.

This adjustment addresses potential issues with cross-origin requests and simplifies the deployment process for websites with multiple or changing domains.
2024-04-24 08:08:57 +02:00
Kumi b485ef06d0
feat(readme): add donation badge and clarify hosting
Added a badge to the README to encourage support through private.coffee donations, making it easier for users to contribute to the project's development. Also, clarified that our web hosting solution includes both Apache and PHP to provide clearer setup guidance for users looking to implement the service in their own environments.

This enhancement aims to foster community support and ensure users have a clear understanding of the technical requirements for using MyIP.Coffee.
2024-04-24 08:05:33 +02:00
Kumi 81ac90c68e
feat: Launch MyIP.Coffee web service
Introduced a new web service, MyIP.Coffee, for displaying client IP addresses. This update includes:
- MIT License addition for open-source usage.
- README for setup instructions and project overview.
- PHP script and nginx configs to support IP address retrieval.
- Basic website structure with HTML, CSS, and JavaScript to display IPv4 and IPv6 addresses on load.

This service aims to provide a user-friendly platform for clients to easily find their public IP addresses, supporting both IPv4 and IPv6 with a focus on simplicity and efficiency. Future improvements may include enhanced IP detection and custom user settings.
2024-04-12 19:52:23 +02:00