Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
crowmagnumb committed Nov 25, 2024
1 parent 6c2c43f commit f3fd808
Show file tree
Hide file tree
Showing 6 changed files with 153 additions and 46 deletions.
26 changes: 0 additions & 26 deletions README

This file was deleted.

90 changes: 90 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# crowmagnumb.net

## CalDAV/CardDAV

Using `radicale.org`. Followed setup in `https://radicale.org/v3.html` but had to use `--break-system-packages` to get this to work.

```sh
python3 -m pip install --upgrade https://github.com/Kozea/Radicale/archive/master.tar.gz --break-system-packages
sudo mkdir -p /etc/radicale
sudo apt-get install apache2-utils
sudo htpasswd -c /etc/radicale/users crowmagnumb
sudo nano /etc/radicale/config
```
```conf
[auth]
type = htpasswd
htpasswd_filename = /etc/radicale/users
htpasswd_encryption = autodetect
[server]
hosts = 0.0.0.0:5232, [::]:5232
```

```sh
sudo useradd --system --user-group --home-dir / --shell /sbin/nologin radicale
sudo nano /etc/systemd/system/radicale.service
```

```conf
[Unit]
Description=A simple CalDAV (calendar) and CardDAV (contact) server
After=network.target
Requires=network.target
[Service]
ExecStart=/usr/bin/env python3 -m radicale
Restart=on-failure
User=radicale
# Deny other users access to the calendar data
UMask=0027
# Optional security settings
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
PrivateDevices=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
NoNewPrivileges=true
ReadWritePaths=/var/lib/radicale/collections
[Install]
WantedBy=multi-user.target
```

```sh
# collections are by default stored in `/var/lib/radicale/collections`
sudo mkdir -p /var/lib/radicale/collections
sudo chown -R radicale:radicale /var/lib/radicale/collections
sudo chmod -R o= /var/lib/radicale/collections
sudo systemctl enable radicale
sudo systemctl start radicale
sudo systemctl status radicale
sudo journalctl --unit radicale.service
```

### Apache

```sh
sudo nano /etc/apache2/sites-available/radicale.conf
```

```conf
RewriteEngine On
RewriteRule ^/radicale$ /radicale/ [R,L]
<Location "/radicale/">
ProxyPass http://localhost:5232/ retry=0
ProxyPassReverse http://localhost:5232/
RequestHeader set X-Script-Name /radicale
RequestHeader set X-Forwarded-Port "%{SERVER_PORT}s"
RequestHeader unset X-Forwarded-Proto
<If "%{HTTPS} =~ /on/">
RequestHeader set X-Forwarded-Proto "https"
</If>
</Location>
```

```sh
sudo systemctl reload apache2
```
74 changes: 56 additions & 18 deletions fifa/seasonsim/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
}
fieldset legend {
color: var(--primary-color);
}</style></head><body><div style="display: flex; flex-direction: row; flex-wrap: wrap"><div style="margin-right: 10px"><div class="station"><a href="https://www.freeformportland.org/">Freeform Portland</a><video controls><source src="https://www.freeformportland.org/listen" type="audio/mpeg"></video></div><div class="station"><a href="https://wcbn.org/">WCBN</a><a href="https://app.wcbn.org/?autoplay#now">Player</a></div><div class="station"><a href="https://xray.fm/">XRAY</a><video controls><!-- https://xray.fm/api/tracks/current ()--><!-- https://xray.fm/api/broadcasting (now gives current program, Track gives same result as above so could just call this one)--><source src="http://listen.xray.fm:8000/stream" type="audio/mpeg"></video></div><div class="station"><a href="http://kfjc.org">KFJC</a><a href="http://kfjc.org/player" onclick="window.open(this.href, 'kfjcpopupplayer', 'location=no,width=380,height=560,scrollbars=no,resizable=no,toolbar=no,directories=no,menubar=no,status=no'); return false;">Player (Pop-up)</a></div><div class="station"><a href="https://wfmu.org">WFMU</a><a href="http://www.radiorethink.com/tuner/?stationCode=wfmu&amp;stream=hi">Player (Pop-up)</a></div><div class="station"><a href="https://poolside.fm/">Poolside FM</a></div></div><fieldset><legend>Quick Links</legend><div class="links"><a href="https://www.evernote.com/Home.action?login=true">Notes</a><a href="https://todoist.com/app">TODO</a></div></fieldset><fieldset><legend>Movies</legend><div class="links"><a href="https://cstpdx.com/">Clinton Street</a><a href="https://www.thecinemagictheater.com/">Cinemagic</a><a href="https://www.laurelhursttheater.com/">Laurelhurst</a><a href="https://hollywoodtheatre.org/">Hollywood</a><a href="https://www.mcmenamins.com/bagdad-theater-pub/now-playing">Bagdad</a><a href="https://www.cinema21.com/">Cinema 21</a></div></fieldset><fieldset><legend>Events</legend><div class="links"><a href="https://www.shift2bikes.org/calendar/">Shift</a><a href="https://bikeportland.org/events">Bike Portland</a></div></fieldset></div></body></html>
}</style></head><body><div style="display: flex; flex-direction: row; flex-wrap: wrap"><div style="margin-right: 10px"><div class="station"><a href="https://www.freeformportland.org/">Freeform Portland</a><video controls><source src="https://www.freeformportland.org/listen" type="audio/mpeg"></video></div><div class="station"><a href="https://wcbn.org/">WCBN</a><a href="https://app.wcbn.org/?autoplay#now">Player</a></div><div class="station"><a href="https://xray.fm/">XRAY</a><video controls><!-- https://xray.fm/api/tracks/current ()--><!-- https://xray.fm/api/broadcasting (now gives current program, Track gives same result as above so could just call this one)--><source src="http://listen.xray.fm:8000/stream" type="audio/mpeg"></video></div><div class="station"><a href="http://kfjc.org">KFJC</a><a href="http://kfjc.org/player" onclick="window.open(this.href, 'kfjcpopupplayer', 'location=no,width=380,height=560,scrollbars=no,resizable=no,toolbar=no,directories=no,menubar=no,status=no'); return false;">Player (Pop-up)</a></div><div class="station"><a href="https://wfmu.org">WFMU</a><a href="http://www.radiorethink.com/tuner/?stationCode=wfmu&amp;stream=hi">Player (Pop-up)</a></div><div class="station"><a href="https://poolside.fm/">Poolside FM</a></div></div><fieldset><legend>Quick Links</legend><div class="links"><a href="https://www.evernote.com/Home.action?login=true">Notes</a><a href="https://todoist.com/app">TODO</a></div></fieldset><fieldset><legend>Movies</legend><div class="links"><a href="https://cstpdx.com/">Clinton Street</a><a href="https://www.thecinemagictheater.com/">Cinemagic</a><a href="https://www.laurelhursttheater.com/">Laurelhurst</a><a href="https://hollywoodtheatre.org/">Hollywood</a><a href="https://www.mcmenamins.com/bagdad-theater-pub/now-playing">Bagdad</a><a href="https://www.cinema21.com/">Cinema 21</a></div></fieldset><fieldset><legend>Events</legend><div class="links"><a href="https://www.shift2bikes.org/calendar/">Shift</a><a href="https://bikeportland.org/events">Bike Portland</a></div></fieldset><fieldset><legend>Music</legend><div class="links"><a href="https://www.nofunportland.com/">No Fun</a></div></fieldset></div></body></html>
4 changes: 4 additions & 0 deletions index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,7 @@ html(lang="en")
.links
a(href="https://www.shift2bikes.org/calendar/") Shift
a(href="https://bikeportland.org/events") Bike Portland
fieldset
legend Music
.links
a(href="https://www.nofunportland.com/") No Fun
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"build": "pug index.pug"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit f3fd808

Please sign in to comment.