Dmitry Verkhoturov
f1163139d7
add docker image labels, add docker image badge to readme
...
Specification for labels:
https://github.com/opencontainers/image-spec/blob/main/annotations.md
2022-07-24 23:06:42 +02:00
Dmitry Verkhoturov and Umputun
2d2f2ab02a
return docker build for frontend and backend code outside in CI
...
Previously we built a Docker image just for the test,
but the introduction of multi-arch build in 9fbf0952
build also meant the push of the image, so it was
restricted only to the master branch.
This change re-introduces the Docker image build
outside the master branch, which is helpful
in pull requests.
We recently had a few frontend PRs which broke
the Docker image build silently, and that change
prevents it from happening.
2022-07-19 19:25:54 -05:00
Dmitry Verkhoturov and Umputun
50785e0577
bump didip/tollbooth from v6 to v7
2022-07-19 17:13:02 -05:00
Dmitry Verkhoturov and Umputun
9c1a827685
update alecthomas/chroma and Depado/bfchroma to v2
2022-07-13 20:29:46 -05:00
Dmitry Verkhoturov and Umputun
26476db95d
update go-pkgz/rest, stretchr/testify, three stdlib modules
2022-07-13 12:40:30 -05:00
Dmitry Verkhoturov and Umputun
1f96a0e4d3
update go-pkgz/auth module to fix dev provider work
...
Fix for error introduced in the following commit:
https://github.com/go-pkgz/auth/commit/06e72788bcbb23d958c60655b42892b95457477e
After text/template was replaced with the html/template,
the dev provider started escaping parameters
which were not supposed to be escaped.
2022-07-10 10:49:41 -05:00
Umputun
e55f6ffdf3
go mod tidy for examples
2022-06-05 12:53:34 -05:00
Dmitry Verkhoturov and Umputun
3b5f44da46
bump go modules, fix StartTLS email notifications
...
In #1359 , we discovered that StartTLS was not working\
due to the wrong host passed. This bumps the library for the fix.
Also, after a switch to go-pkgz/notify MailGun email sending
broke due to the difference in the destination email parsing,
the fix is also applied after this commit.
2022-05-20 16:00:30 -05:00
Dmitry Verkhoturov and Umputun
0560a893cf
switch to go-pkgz/notify package: modules
2022-04-29 13:32:15 -05:00
Dmitry Verkhoturov and Umputun
ba86db1263
replace errors package with fmt.Errorf
...
https://gist.github.com/Peltoche/60b8b81dfbf70164d0e2b88988003229
was used for it, thanks to @Peltoche for publishing it.
2022-04-26 00:25:09 -05:00
Umputun
9ab27da343
update deps on example
2022-04-15 20:29:14 -05:00
Umputun and GitHub
89dc8ac6dd
Go 1.17 ( #1306 )
...
* change go mod to 1.17
* update go-pgkz and transitive deps
* bump examples to go-1.17
* bump deps
2022-04-05 11:50:45 -05:00
Dmitry Verkhoturov and Umputun
6fd730655a
bump Go modules
2022-02-09 11:04:13 -06:00
Dmitry Verkhoturov and Umputun
9dbc36e426
remove explicit /srv/ usage from docker-compose files
...
We have plenty of paths used in the application, but two of them
are hardcoded in examples all over the code for historical reasons.
I found that by default in Docker, the path would resolve to the value
we are setting it explicitly to, so it doesn't make sense to set
a few variables we are setting now explicitly.
2022-02-07 03:54:54 -06:00
Dmitry Verkhoturov and Umputun
6fe83fb6b8
bump auth module
...
Follow-up for https://github.com/go-pkgz/auth/pull/107
2022-02-06 14:22:27 -06:00
Dmitry Verkhoturov and Umputun
603decabf6
add QR API endpoint for Telegram auth and notifications
...
Telegram authentication requires you to open a chat on the phone.
It's convenient to have a QR code for the case when you want to
log in on the computer but have Telegram only on your phone
and would be able to scan the QR instead of copy-pasting the link
from the computer to the phone any other way.
Originally we thought of generating QR on the client but found
backend-generated QR a better alternative because we avoid adding
one more JavaScript dependency to the frontend that way.
2022-01-31 14:28:18 -06:00
Dmitry Verkhoturov and Umputun
8d42d0714f
bump backend dependencies
...
Also, switch from fork github.com/umputun/go-flags back to original
github.com/jessevdk/go-flags.
2022-01-31 14:24:33 -06:00
Umputun
fcb13e2016
update mod sum for examples
2021-12-07 13:12:34 -06:00
Dmitry Verkhoturov and Umputun
90e537358d
update golangci-lint to 1.43.0, fix found issues
2021-11-23 15:00:40 -06:00
Dmitry Verkhoturov and Umputun
c751fbaf37
bump project dependencies, go-auth
2021-11-08 11:41:07 -06:00
Dmitry Verkhoturov and Umputun
c852ea4834
bump go modules
2021-10-29 11:48:46 -05:00
Umputun
edb45a61fc
fix example mod
2021-10-18 23:53:08 -05:00
Dmitry Verkhoturov and Umputun
3f0ede560c
bump go modules in the project
2021-09-08 11:34:48 -05:00
Dmitry Verkhoturov and Umputun
fd5df39fe2
bump backend auth module to fix telegram auth
2021-08-17 16:33:53 -05:00
Pavel Mineev and Umputun
36840ed240
double quotes in yml
2021-08-03 03:22:27 -05:00
Umputun
4c2f2aa097
change go.mod version to 1.16, change ci to 1.16
2021-07-27 04:25:27 -05:00
Umputun
b66c94e002
migrate jwt lib to maintained fork and updated (the same way) go-pkgz/auth
2021-07-26 21:06:12 -05:00
Dmitry Verkhoturov and Umputun
2c8556ff2f
consistent formatting for markdown files
2021-07-25 13:28:08 -05:00
Dmitry Verkhoturov and Umputun
fd4c6ceb18
add UserDetailTelegram support
2021-06-13 13:18:33 -05:00
Dmitry Verkhoturov and Umputun
ea15b28bf6
clarification of notify comments and code
2021-06-12 12:59:26 -05:00
Dmitry Verkhoturov and Umputun
0e550e83fa
add method to renew image cleanup timer
2021-05-24 17:33:59 -05:00
Dmitry Verkhoturov and Umputun
19ba43b843
dockerfile: remove dead code, bump buildgo
2021-05-07 23:27:58 -05:00
Dmitry Verkhoturov and Umputun
4a2ae04571
replace deprecated golangci-lint check, fix goleak reports
2021-05-07 16:09:28 -05:00
Umputun and GitHub
d5246c9689
Deps bump ( #956 )
...
* remove redundant sprintf
* bump many deps
* missing vendors
2021-04-27 00:30:38 -05:00
Umputun
807160dcf6
prep admin to support multiple keys, per aud (siteID)
2021-02-15 13:14:23 -06:00
Umputun and GitHub
be2f6d0a20
Fix admin names ( #858 )
...
* fix admin name check for anon login #605
* update readme with admin names info
* lint: list of static site params
* typo
* don't allow email users to reuse admin names
* move admin.names to restricted-names
* forgotten names member
* remove names from example admin
* remove names from prepTestStore
2021-01-20 13:12:09 -06:00
Dmitry Verkhoturov and Umputun
ebf379f4d6
bump go-pkgz/lcw to v0.7.1
2020-06-25 17:28:33 -05:00
Dmitry Verkhoturov
80f4862c9c
fix leaking goroutines and add tests for them
2020-06-01 09:58:48 +02:00
Dmitry Verkhoturov and Umputun
890d7154e7
bump go modules
2020-05-24 19:00:07 -05:00
Umputun
11fde80d27
replace references to legacy remark url in docs
2020-05-12 12:08:18 -05:00
Umputun
0895de2f7e
rename all packages from the legacy remark/ to remark42
2020-05-12 11:34:16 -05:00
Dmitry Verkhoturov and Umputun
e922fc31a2
enable gocritic linter and fix found issues
2020-04-26 17:05:34 -05:00
Dmitry Verkhoturov
c7f73a6c84
add image.Store.Info() function
2020-04-23 00:52:36 +02:00
Dmitry Verkhoturov
318feb8ed2
golangci-lint fixes for memory_store tests
2020-04-21 11:47:15 +02:00
Dmitry Verkhoturov and Umputun
513c8f353d
sticter golangci config, fix discovered issues
2020-04-19 16:21:09 -05:00
Dmitry Verkhoturov and Umputun
2acb00d424
rename image.Store.SaveWithID to Save
2020-04-19 16:21:09 -05:00
Dmitry Verkhoturov and Umputun
36cee9cc66
simplify image.Store interface
2020-04-19 16:21:09 -05:00
Dmitry Verkhoturov
828669ac95
remove t.Log from test server.Run in memory_store
2020-04-14 00:20:42 +02:00
Dmitry Verkhoturov and Umputun
afc94adc1b
remove log package usage from tests, sort imports
2020-04-13 16:01:51 -05:00
Umputun
360f47e16b
go mod for memory_store example
2020-04-13 14:31:58 -05:00