Initial Commit

pull/3/head
James Mills 6 months ago
commit 31caafda3e
Signed by: prologic
GPG Key ID: AC4C014F1440EBD6
  1. 9
      .dockerignore
  2. 32
      .drone.yml
  3. 4
      .gitignore
  4. 25
      .zs/layout.html
  5. 34
      Dockerfile
  6. 29
      Makefile
  7. 5
      README.md
  8. 29
      index.md
  9. 1689
      water.css
  10. 1
      water.min.css

@ -0,0 +1,9 @@
*~
*.bak
/.pub
/.git
/README.md
/.drone.yml
/.gitignore
/.dockerignore

@ -0,0 +1,32 @@
---
kind: pipeline
name: default
steps:
- name: build-image-push
image: plugins/kaniko
settings:
registry: r.mills.io
repo: r.mills.io/prologic/salty.im
tags: latest
username:
from_secret: docker_username
password:
from_secret: docker_password
- name: notify-irc
image: plugins/webhook
settings:
urls:
- https://msgbus.mills.io/ci.mills.io
when:
status:
- success
- failure
trigger:
branch:
- master
event:
- cron
- push

4
.gitignore vendored

@ -0,0 +1,4 @@
*~
*.bak
/.pub

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/water.min.css">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<title>{{ title }}</title>
</head>
<body>
{{ content }}
<hr />
<footer>
<small>
Last modified <time datetime="{{ date +%Y-%m-%dT%H:%M:%SZ%:z }}">{{ date }}</time> ·
Copyright © 2021-present All Rights Reserved James Mills ·
Built with <a href="https://git.mills.io/prologic/zs">zs
</small>
</footer>
</body>
<script data-goatcounter="https://stats.salty.im/count"
async src="//salty.im/count.js"></script>
</html>

@ -0,0 +1,34 @@
# Build
FROM golang:alpine AS build
ENV CGO_ENABLED=0
RUN apk add --no-cache -U build-base git make curl ca-certificates
RUN mkdir -p /src
WORKDIR /src
# Copy Makefile
COPY Makefile ./
# Install deps
RUN make deps
# Copy content
COPY . .
# Build the site
RUN make build
# Runtime
FROM scratch
WORKDIR /
VOLUME /data
COPY --from=build /go/bin/static /static
COPY --from=build /src/.pub /data
ENTRYPOINT ["/static"]
CMD ["-r", "/data"]

@ -0,0 +1,29 @@
-include environ.inc
.PHONY: deps dev build install image release test clean
GOCMD=go
all: build
deps:
@$(GOCMD) install git.mills.io/prologic/zs@latest
@$(GOCMD) install git.mills.io/prologic/static@latest
dev : DEBUG=1
dev : build
@zs watch
build:
@zs build
ifeq ($(PUBLISH), 1)
image:
@docker build -t r.mills.io/prologic/salty.im
@docker push r.mills.io/prologic/salty.im
else
image:
@docker build -t r.mills.io/prologic/salty.im .
endif
clean:
@git clean -f -d -X

@ -0,0 +1,5 @@
# salty.im
[![Build Status](https://ci.mills.io/api/badges/prologic/salty.im/status.svg)](https://ci.mills.io/prologic/salty.im)
[salty.im](https://salty.im) landing page

@ -0,0 +1,29 @@
---
title: salty.im - A new self-hosted, decentralised indie instant messaging
description: salty.im is an open specification for a new Saltpack based e2e encrypted messaging protocol and platform for secure communications with a focus on privacy, security and being self-hosted.
keywords: salt, salty, saltpack, chat, im, instanct, messenger, decentralised, self-hosted
---
# salty.im
[salty.im](https://salty.im) is a...
## 👉 Getting Started
For now please refer to a proof-of-concept / prototype caleld:
- [salty-chat](https://git.mills.io/prologic/salty-chat)
This is a quick 'n dirty proof-of-concept / prototype that is attempting to
flesh our the base specifications.
In a nutshell (so far) this consists of:
- An endpoint
- A discovery mechanism
To get involved, please reach out to [@prologic@twtxt.net](https://twtxt.net/~prologic)
## 👨 Licenses
This work is currently licensed under the terms of the [WTFPL License](https://opensource.org/licenses/WTFPL)

File diff suppressed because it is too large Load Diff

1
water.min.css vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save