diff --git a/LICENSE b/LICENSE index 826701c..d59651b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2022 Alexander "Arav" Andreev +Copyright (c) 2022,2023 Alexander "Arav" Andreev Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: diff --git a/Makefile b/Makefile index 98343c9..790ddea 100755 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ SYSDDIR_=${shell pkg-config systemd --variable=systemdsystemunitdir} SYSDDIR=${SYSDDIR_:/%=%} DESTDIR=/ -LDFLAGS=-ldflags "-s -w -X main.version=22.50.0" -tags osusergo,netgo +LDFLAGS=-ldflags "-s -w -X main.version=23.8.0" -tags osusergo,netgo all: ${TARGET} diff --git a/build/archlinux/PKGBUILD b/build/archlinux/PKGBUILD index 83af890..9962dd3 100644 --- a/build/archlinux/PKGBUILD +++ b/build/archlinux/PKGBUILD @@ -1,10 +1,10 @@ -# Maintainer: Alexander "Arav" Andreev +# Maintainer: Alexander "Arav" Andreev pkgname=dwelling-files -pkgver=22.50.0 +pkgver=23.8.0 pkgrel=1 pkgdesc="Arav's dwelling / Files" arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64') -url="https://git.arav.top/Arav/dwelling-files" +url="https://git.arav.su/Arav/dwelling-files" license=('MIT') groups=() depends=() @@ -15,7 +15,7 @@ replaces=() backup=() options=() install= -source=('https://git.arav.top/Arav/dwelling-files/archive/22.50.0.tar.gz') +source=('https://git.arav.su/Arav/dwelling-files/archive/23.8.0.tar.gz') noextract=() md5sums=('SKIP') diff --git a/cmd/dwelling-files/main.go b/cmd/dwelling-files/main.go index 7ee4a8e..01c0d3f 100644 --- a/cmd/dwelling-files/main.go +++ b/cmd/dwelling-files/main.go @@ -25,7 +25,7 @@ func main() { log.SetFlags(0) if *showVersion { - fmt.Println("dwelling-files ver.", version, "\nCopyright (c) 2022 Alexander \"Arav\" Andreev ") + fmt.Println("dwelling-files ver.", version, "\nCopyright (c) 2022 Alexander \"Arav\" Andreev ") return } diff --git a/configs/nginx.conf b/configs/nginx.conf index 79ec9c8..5ec3c05 100644 --- a/configs/nginx.conf +++ b/configs/nginx.conf @@ -4,14 +4,14 @@ server { listen [300:a98d:d6d0:8a08::d]:80; # Yggdrasil - server_name files.arav.top files.arav.i2p qf5e43nlhvnrutmikuvbdfj3cmtthokpbaxtkm6mjlslttzvtgm4fxid.onion; + server_name files.arav.su files.arav.i2p qf5e43nlhvnrutmikuvbdfj3cmtthokpbaxtkm6mjlslttzvtgm4fxid.onion; access_log /var/log/nginx/dwelling/files.log main if=$nolog; - ssl_certificate /etc/letsencrypt/live/arav.top/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/arav.top/privkey.pem; + ssl_certificate /etc/letsencrypt/live/arav.su/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/arav.su/privkey.pem; add_header Content-Security-Policy "default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self'; media-src 'self'; object-src 'none'; frame-src 'none'; frame-ancestors 'none'; font-src 'self'; form-action 'self'"; diff --git a/pkg/utils/dwelling.go b/pkg/utils/dwelling.go index 37ee12b..694beba 100644 --- a/pkg/utils/dwelling.go +++ b/pkg/utils/dwelling.go @@ -16,7 +16,7 @@ func MainSite(host string) string { return "http://[300:a98d:d6d0:8a08::f]" } - return "https://arav.top" + return "https://arav.su" } // ToClientTimezone converts given time to timezone set in a diff --git a/web/templates/index.jade b/web/templates/index.jade index 690b0ac..4708cf7 100644 --- a/web/templates/index.jade +++ b/web/templates/index.jade @@ -51,7 +51,7 @@ html(lang='en') p I collect access logs that include access date and time, IP-address, User-Agent, referer URL that tells me where have you came from, request that you sent to me. In addition there are GeoIP information added based on your IP-address that includes country, region, and city for my convenience. p This site makes use of JavaScript purely for convenient functionality, like being able to watch video, listen to music, and look images in an overlay without the need to open a file in a new tab or return back. footer - | 2017—2022 Arav <#[a(href='mailto:me@arav.top') me@arav.top]> + | 2017—2022 Arav <#[a(href='mailto:me@arav.su') me@arav.su]> div#overlay button(name='prev') ❰ div