Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 135ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login Register
zdebel

zdebel

Joined 2 years ago

All gists 24
Recently created Least recently created Recently updated Least recently updated
zdebel

zdebel / opengist auth fix.go

Last active 6 months ago
0 0 1
1 func oauth(ctx echo.Context) error {
2 provider := ctx.Param("provider")
3
4 httpProtocol := "http"
5 if ctx.Request().TLS != nil || ctx.Request().Header.Get("X-Forwarded-Proto") == "https" {
6 httpProtocol = "https"
7 }
8 forwarded_hdr := ctx.Request().Header.Get("Forwarded")
9 if forwarded_hdr != "" {
10 fields := strings.Split(forwarded_hdr, ";")
zdebel

zdebel / gist:ab9800cc9cc24cb7b935f98bdec7b176

Last active 6 months ago
0 0 1
1 test
zdebel

zdebel / gist:a969eebd6af44a469252c0bdaa8af0b7

Last active 6 months ago
0 0 1
1 gdxg
zdebel

zdebel / gist:b61f97eee1624983a6deb4d04a109512

Last active 6 months ago
0 0 1
1 yo
Newer Older