Skip to content

Commit

Permalink
Make the repository for personal use only
Browse files Browse the repository at this point in the history
  • Loading branch information
tarampampam committed Aug 12, 2024
1 parent 2b14291 commit cf4f897
Show file tree
Hide file tree
Showing 24 changed files with 3,687 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# EditorConfig docs: <https://editorconfig.org/>

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @link <https://help.github.com/en/articles/about-code-owners>

* @tarampampam
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Docs: <https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/customizing-dependency-updates>

version: 2

updates:
- package-ecosystem: github-actions
directory: /
groups: {github-actions: {patterns: ['*']}}
schedule: {interval: monthly}
assignees: [tarampampam]
7 changes: 7 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>tarampampam/.github//renovate/default",
":rebaseStalePrs"
]
}
29 changes: 29 additions & 0 deletions .github/workflows/deploy-records.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
# docs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions

name: 🚀 Deploy the DNS records

on:
workflow_dispatch: {}
push:
branches: [master, main]
paths: [zones/**, dnsconfig.js, .github/workflows/deploy-records.yml]

concurrency:
group: ${{ github.ref }}-deploy
cancel-in-progress: false

jobs:
check:
name: 🌐 Deploy the DNS records
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v4
- uses: gacts/install-dnscontrol@v1
- name: Create credentials file
run: echo '{"cloudflare":{"TYPE":"CLOUDFLAREAPI","accountid":"$CF_ID","apitoken":"$CF_TOKEN"}}' > ./creds.json
- run: dnscontrol push
env:
CF_ID: ${{ secrets.CF_ACCOUNT_ID }}
CF_TOKEN: ${{ secrets.CF_API_TOKEN }}
30 changes: 30 additions & 0 deletions .github/workflows/deploy-sites.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
# docs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions

name: 🚀 Deploy the website

on:
push:
branches: [master, main]
paths: [sites/**, .github/workflows/deploy-sites.yml]

concurrency:
group: ${{ github.ref }}-website
cancel-in-progress: true

jobs:
is-an-app:
name: 🖼 Deploy the is-an.app website
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with: {path: sites/is-an.app}
- {uses: actions/deploy-pages@v4, id: deployment}
33 changes: 33 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
# docs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions

name: 🧪 Tests

on:
workflow_dispatch: {}
push:
branches: [master, main]
tags-ignore: ['**']
paths-ignore: ['**.md', 'sites/**']
pull_request:
paths-ignore: ['**.md', 'sites/**']

concurrency:
group: ${{ github.ref }}-tests
cancel-in-progress: true

jobs:
gitleaks:
name: 🔐 GitLeaks
runs-on: ubuntu-latest
steps:
- {uses: actions/checkout@v4, with: {fetch-depth: 0}}
- uses: gacts/gitleaks@v1

check:
name: 🌐 DNSControl check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gacts/install-dnscontrol@v1
- run: dnscontrol check
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## IDEs
/.idea
/.vscode

## Auth
/creds.json

## Temp dirs & trash
/temp
/tmp
.DS_Store
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
# free-domains
<div align="center">

[![Tests Status][badge-tests]][actions]
[![Deploy Status][badge-deploy]][deploy]

</div>

[badge-tests]:https://img.shields.io/github/actions/workflow/status/tarampampam/domains/tests.yml?branch=master&label=tests&logo=github
[badge-deploy]:https://img.shields.io/github/actions/workflow/status/tarampampam/domains/deploy-records.yml?branch=master&label=deploy&logo=github
[actions]:https://github.com/tarampampam/domains/actions
[deploy]:https://github.com/tarampampam/domains/actions/workflows/deploy-records.yml

# DNS Configuration

This repository contains DNS records for some of my domains, allowing me to manage them as code.

> [!NOTE]
> Previously, I was able to accept PRs with new records. However, due to numerous irrelevant domain
> requests, I have decided to close this option.
2 changes: 2 additions & 0 deletions dnsconfig.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require("./zones/is-an.app.js")
require("./zones/1bt.uk.js")
9 changes: 9 additions & 0 deletions sites/is-an.app/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/favicon/mstile-150x150.png"/>
<TileColor>#da532c</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added sites/is-an.app/favicon.ico
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sites/is-an.app/favicon/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sites/is-an.app/favicon/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sites/is-an.app/favicon/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sites/is-an.app/favicon/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions sites/is-an.app/favicon/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
88 changes: 88 additions & 0 deletions sites/is-an.app/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>is-an.app domain</title>

<link rel="apple-touch-icon" sizes="152x152" href="favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon/favicon-16x16.png">
<!-- <link rel="manifest" href="webmanifest.json">-->
<link rel="mask-icon" href="favicon/safari-pinned-tab.svg" color="#5bbad5">

<style>
:root {
--color-bg-primary: #fff;
--color-bg-secondary: #00a6d5;
--color-bg-inverted: #151515;
--color-text-primary: #151515;
--color-text-inverted: #fff;
}

@media (prefers-color-scheme: dark) {
:root {
--color-bg-primary: #2f2f2f;
--color-bg-secondary: #3bc1e1;
--color-bg-inverted: #fff;
--color-text-primary: #fff;
--color-text-inverted: #2f2f2f;
}
}

body, html {
background-color: var(--color-bg-primary);
color: var(--color-text-primary);
font-family: sans-serif;
font-size: 16px;
margin: 0;
padding: 0;
height: 100vh;
}

body {
display: flex;
justify-content: center;
align-items: center;
}

main {
width: 800px;
}

header {
margin-bottom: 2em;
}

.url {
position: relative;
background-color: var(--color-bg-secondary);
color: var(--color-text-inverted);
padding: 10px 20px;
font-weight: 700;
font-size: 3em;
z-index: 1;
}

p {
font-size: 1.4em;
font-weight: 400;
padding: 1em 0 0 0;
margin: 0;
line-height: 1.5;
}

a {
color: var(--color-bg-secondary);
}
</style>
</head>
<body>
<main>
<header>
<span class="url">https://is-an.app</span>
</header>
</main>

</body>
</html>
4 changes: 4 additions & 0 deletions sites/is-an.app/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
User-agent: ia_archiver
Disallow: /

User-agent: *
14 changes: 14 additions & 0 deletions sites/is-an.app/webmanifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/favicon/android-chrome-144x144.png",
"sizes": "144x144",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
Loading

0 comments on commit cf4f897

Please sign in to comment.