Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marshallku/notion-custom-domain
Use a custom domain for your public Notion page
https://github.com/marshallku/notion-custom-domain
axum docker notion rust
Last synced: 15 days ago
JSON representation
Use a custom domain for your public Notion page
- Host: GitHub
- URL: https://github.com/marshallku/notion-custom-domain
- Owner: marshallku
- Created: 2024-04-29T06:00:16.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-06-18T06:56:29.000Z (7 months ago)
- Last Synced: 2024-10-09T13:19:35.469Z (3 months ago)
- Topics: axum, docker, notion, rust
- Language: Rust
- Homepage: https://resume.marshallku.com/
- Size: 101 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Notion Custom Domain
This application allows you to use a custom domain for your Notion page, replacing messy URLs with a cleaner, more memorable format. For example, you can access your page with your own custom domain instead of a messy URL like `https://example.notion.site/a8461811a3044446a2048fc054001b9d`.
## Features
- Custom Domain Mapping: Simplifies Notion page URLs by allowing you to set a custom domain.
- Configuration: Users can configure the API with a simple `.env` file.## Prerequisites
- Rust
- Docker### Additional packages
```bash
sudo apt install pkg-config libssl-dev
```In order to run the application using `cargo run`, the `reqwest` library requires the `pkg-config` and `libssl-dev` packages to be installed
## Configuration
- `BIND_ADDRESS`: The IP address the application will use for hosting.
- `PORT`: The port number for hosting.
- `HOST`: The Notion origin URL.
- `ROUTE_PATHS`: The path to the Notion page (e.g. `/,/en`).
- `NOTION_PAGES`: The ID of the Notion page (e.g. `a8461811a3044446a2048fc054001b9d,aae83820e0124d50906dc50a3fefef20`).
- `EXTERNAL_ADDRESS`: Actual external url for accessing application.### Inject tags
Place `head.html`, `body.html` files in the root directory. It should contain any HTML you wish to include at the end of the `` or `` section of the page.
```html
@font-face {
font-family: Pretendard-Regular;
src: url("https://cdn.jsdelivr.net/gh/Project-Noonnu/[email protected]/Pretendard-Regular.woff")
format("woff");
font-weight: 400;
font-style: normal;
font-display: swap;
}
* {
font-family: Pretendard-Regular, ui-sans-serif, -apple-system,
BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji",
Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol" !important;
}```
For example, if you create `head.html` like above, you can modify font of your page.