Coder Social home page Coder Social logo

shinosaki / workers-mail Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 2.0 261 KB

Cloudflare Workers上でweb UIとAPIを備えた独自ドメインのメールサービスを構築できます。 / Host your own email service on Cloudflare Workers with a web UI, an API, and your own domain.

Home Page: https://mail.lain.im

License: MIT License

JavaScript 99.01% CSS 0.29% HTML 0.70%
api cloudflare-workers email email-hosting frontend hono sveltekit tailwindcss

workers-mail's Introduction

UwU

👋 Hi! I'm Maseshi (マセし)

Programming is like teaching a child.

Maseshi's Streak

📋 About me

  • 🤔 How to center a div?
  • 📫 How to reach me: Discord: maseshi
  • 🍫 Fun fact: Dark chocolate is delicious.
  • 🎨 Black and White give a minimalist feel.
  • 💬 I might not be able to use English correctly.
  • 🪙 Little by little donation, life will be bright, Buy me a green tea.

Maseshi's Stats

working = True
process = "ERROR" if working else "PASS"

print(process) # ERROR
# Can work even when errors occur.

🪴 Workspace

A good workspace is half the battle won. Even if it's not very good, it's enough to keep going.

ASUS Laptop
Model K45VD
OS Windows 11 Pro
CPU INTEL CORE I5-3210M
GPU Intel(R) HD Graphics 4000, NVIDIA GeForce 610M
Storage 1.24 TB (WD Green SATA SSD: 240 GB, Seagate SATA HDD: 1 TB)
RAM 12 GB 1600 MHz DDR3L (Blackberry: 8 GB, Hynix: 4 GB)

🧰 Languages

This is something I've used before and am familiar with these languages.

Maseshi's Top Languages

Note

For information on skills, languages, and tools previously used, please refer to https://maseshi.web.app/#skills

workers-mail's People

Contributors

shinosaki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ensurri rpa2y

workers-mail's Issues

APIとフロントエンドを分離する

現状、Cloudflare WorkersにデプロイされているAPI(Hono)から、フロントエンド(index.html及び静的アセット)を配信しています。
この構成だと、+server.jsやPrerenderingなどSvelteKitの機能が利用できません。

APIとフロントエンドを分離し、フロントエンドをCloudflare Pages(with Pages Functions)にデプロイすることで、PrerenderingやSSRを利用できるようになります。

SPAからSSRに移行する

Tor BrowserのSecurity LevelsがSafestの場合など、Javascriptが無効な環境でも利用できるようにSSRに移行します。

Web Key Directoryを提供する

EMAIL_DOMAINSに複数のドメイン名を指定できる仕様であり、DNSのSRVレコードを追加するのも面倒なので、Advancedモードのみサポートする予定です。

mail.example.comでホストしている場合、openpgpkey.mail.example.comというルートを追加する必要があります。

WKDの説明

500エラーが発生する

サーバ側でAPIデータをfetch()して取得する際、The 'credentials' field on 'RequestInitializerDict' is not implementedというエラーが発生して500エラーが発生してしまう。

このエラーはCloudflare Pages(というかWorkers)固有の問題だと思う。

  • エラーメッセージ
    GET https://mail.lain.im/ - Ok @ 8/14/2023, 1:49:11 PM
      (error) Error: The 'credentials' field on 'RequestInitializerDict' is not implemented.
    

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.