Compare commits

..

4 commits

Author SHA1 Message Date
Ell
3f8596083d fixed deploy workflow 2024-05-08 17:46:13 +02:00
Ell
f515226940 fixed purge action url 2024-05-08 17:41:57 +02:00
Ell
3e1d1c8292 added github action to deploy the server 2024-05-08 17:41:15 +02:00
Ell
876af1a13a add discord to index 2024-05-08 17:30:30 +02:00
4 changed files with 30 additions and 15 deletions

View file

@ -7,3 +7,6 @@ insert_final_newline = true
indent_style = space indent_style = space
indent_size = 4 indent_size = 4
tab_width = 4 tab_width = 4
[{*.yml,*.yaml}]
indent_size = 2

21
.github/workflows/server.yml vendored Normal file
View file

@ -0,0 +1,21 @@
on:
push:
branches: [main]
jobs:
deploy-server:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# this is a beautiful way to deploy a website and i will not take any criticism
# (though maybe if you self-host this, you should use a better way to deploy your site)
- name: Deploy
run: |
curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && sudo dpkg -i cloudflared.deb
mkdir ~/.ssh && echo "${{ secrets.ELLBOT_KEY }}" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
rsync -rv --delete -e 'ssh -o "ProxyCommand cloudflared access ssh --hostname %h" -o "StrictHostKeyChecking=no"' server/public/ ellbot@ssh.ellpeck.de:/var/www/jsp/public
- name: Purge Cloudflare cache
uses: NathanVaughn/actions-cloudflare-purge@v3.1.0
with:
cf_zone: ${{ secrets.CLOUDFLARE_ZONE }}
cf_auth: ${{ secrets.CLOUDFLARE_TOKEN }}

View file

@ -1,13 +0,0 @@
when:
path: "server/**"
steps:
deploy-server:
image: debian:latest
when:
- event: [push, manual]
branch: main
commands:
- rm -rfv /var/www/jsp/public/*
- cp -rv server/. /var/www/jsp
volumes:
- /var/www/jsp:/var/www/jsp

View file

@ -67,13 +67,17 @@ The `index.html` and `style.css` files contain the site's styling and layout and
Lastly, to get your server connected to the plugin, head to its settings and change the Just Share Please Server setting's value to your server's public URL. Lastly, to get your server connected to the plugin, head to its settings and change the Just Share Please Server setting's value to your server's public URL.
If you have any additional questions about the plugin or the self-hosting setup, feel free to join the Discord!
[![Join the Discord server](https://ellpeck.de/res/discord-wide.png)](https://link.ellpeck.de/discordweb)
## About This Site ## About This Site
The official Just Share Please site, [jsp.ellpeck.de](https://jsp.ellpeck.de), is run by Ellpeck, the creator of the plugin. It is hosted on a server in Germany, and connections to and from it are secured using SSL encryption, partly through LetsEncrypt and partly through Cloudflare SSL. The official Just Share Please site, [jsp.ellpeck.de](https://jsp.ellpeck.de), is run by Ellpeck, the creator of the plugin. It is hosted on a server in Germany, and connections to and from it are secured using SSL encryption, partly through LetsEncrypt and partly through Cloudflare SSL.
If you have lost access to your shares due to your settings file being deleted or due to other reasons, and you want your shares to be deleted, please contact Ell at [me@ellpeck.de](mailto:me@ellpeck.de) or through his [Discord server](https://ellpeck.de/discord). If you have lost access to your shares due to your settings file being deleted or due to other reasons, and you want your shares to be deleted, please contact Ell at [me@ellpeck.de](mailto:me@ellpeck.de) or through the [Discord server](https://ellpeck.de/discord).
Additionally, the site's source can be found [on GitHub](https://github.com/Ellpeck/ObsidianJustSharePlease/tree/main/server), and for information on privacy and ownership, see the [imprint](https://ellpeck.de/impressum/) and [privacy policy](https://ellpeck.de/privacy/). Ellpeck Games is not responsible for content published through Just Share Please. Additionally, the site's source can be found [on GitHub](https://github.com/Ellpeck/ObsidianJustSharePlease/tree/main/server), and for information on privacy and ownership, see the [imprint](https://ellpeck.de/impressum/) and [privacy policy](https://ellpeck.de/privacy/). Ellpeck Games is not responsible for content published through Just Share Please.
Lastly, if you like this plugin and website and want to support their development, you can do so through my website by clicking this fancy image! Lastly, if you like this plugin and website and want to support their development, you can do so through my website by clicking this fancy image!
[![Support me (if you want), via Patreon, Ko-fi or GitHub Sponsors](https://ellpeck.de/res/generalsupport.png)](https://ellpeck.de/support) [![Support me (if you want), via Patreon, Ko-fi or GitHub Sponsors](https://ellpeck.de/res/generalsupport-wide.png)](https://ellpeck.de/support)