Hi there!
I managed to get Lightning running on my system, and registered it as an appservice on a friend's Matrix homeserver. We have successfully bridged their Matrix room to a Fluxer community.
However, when I send messages from Fluxer, the bot keeps updating my profile picture on the Matrix side.
bilde
As you can see in the picture, the avatar is updated when I send a message.
Not always, but very often.
I'm not sure if I've misconfigured something, but if you could take a look at my configurations and let me know if I did, I would appreciate it.
- The Matrix homeserver where the appservice is registered is
mx.scalie.zone
- The bot is hosted on my server,
lightning-mx.68degrees.no
- I only have one profile picture (no community specific ones) on Fluxer.
- I am not using Docker.
- Debian 13, Go 1.24, Lightning installed 2026年06月24日
Click each to expand them:
lightning.toml
database = "(redacted)"
prefix = "br!"
(Two other Discord plugins stripped from here)
[[plugins]]
type = "discord"
name = "fluxer-scaliebridge"
config.token = "(redacted)"
config.api_host = "api.fluxer.app"
config.cdn_host = "fluxerusercontent.com"
config.frontend = "web.fluxer.app"
[[plugins]]
type = "matrix"
name = "matrix-scaliebridge"
config.homeserver = "mx.scalie.zone"
config.proxy_url = "https://lightning-mx.68degrees.no/matrix"
config.proxy_port = "40995"
config.as_url = "https://lightning-mx.68degrees.no"
config.as_local = "scaliebridge"
config.as_token = "(redacted)"
config.hs_token = "(redacted)"
Appservice registration YAML
id:"ScalieZone Lightning Bridge"url:https://lightning-mx.68degrees.noas_token:(redacted)hs_token:(redacted)sender_localpart:scaliebridgenamespaces:users:- exclusive:trueregex:"@_lightning_.*"rate_limited:false
nginx
server {
listen 443 ssl;
http2 on;
server_name lightning-mx.68degrees.no;
ssl_certificate (redacted);
ssl_certificate_key (redacted);
# Max file upload size
client_max_body_size 512M;
# Forward requests to Lightning
location /matrix/ {
proxy_pass http://127.0.0.1:40995$request_uri;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
}
location / {
proxy_pass http://127.0.0.1:5000$request_uri;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
Also, in case it helps, there is an error related to my Fluxer avatar in the log:
Lightning log
18:32:28 main.go:33: bridge: bot started
18:32:28 client.go:101: matrix: appservice ready at https://matrix.to/#/@scaliebridge:mx.scalie.zone
18:32:28 proxy.go:51: matrix: file proxy listening at :40995 and https://lightning-mx.68degrees.no/matrix
18:32:30 plugin.go:64: discord: ready as Hambot in 1 servers!
18:32:30 plugin.go:65: discord: invite at (redacted)
18:32:30 plugin.go:64: discord: ready as Hambot in 0 servers!
18:32:30 plugin.go:65: discord: invite at (redacted)
18:32:30 plugin.go:64: discord: ready as ScalieBridge in 0 servers!
18:32:30 plugin.go:65: discord: invite at (redacted)
18:33:29 gateway.go:371: discord: socket error, reconnecting: websocket: close 1000 (normal)
18:33:31 gateway.go:287: discord: connection resumed
19:43:46 bridge.go:204: bridge: EditMessage failed in fluxer-scaliebridge::1516619413405569027: Discord API Error: PATCH /v1/webhooks/1519756256598818816/3Ye2sbN7hiKsun1UjQfjHFjgB3zHjz1m6buulPMJZDUnHJd0FphSOC9A6r4JFBCB/messages/1519759980276752384 status 403 code 403;
19:51:18 outgoing.go:115: matrix: upload failed for https://fluxerusercontent.com/avatars/1473736904463351890/31796b3d.png: M_UNKNOWN (HTTP 500): Internal server error
19:51:18 bridge.go:42: bridge: panic on create in "matrix-scaliebridge::!khoUeIx6hgRnrAQC-vfqVNo72hYKLszdEmq66RjhJXE": runtime error: invalid memory address or nil pointer dereference goroutine 1355 [running]:
runtime/debug.Stack()
/opt/lightning/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.26.4.linux-arm64/src/runtime/debug/stack.go:26 +0x64
main.main.bridgeCreate.func3.1.1()
/opt/lightning/go/pkg/mod/codeberg.org/jersey/lightning@v0.8.9/cmd/lightning/bridge.go:42 +0x3c
panic({0x5f7580?, 0xcfa150?})
/opt/lightning/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.26.4.linux-arm64/src/runtime/panic.go:860 +0x12c
codeberg.org/jersey/lightning/pkg/platforms/matrix.(*matrixPlugin).getClient(0x7f574a0540, 0x7f5748a370)
/opt/lightning/go/pkg/mod/codeberg.org/jersey/lightning@v0.8.9/pkg/platforms/matrix/client.go:122 +0xf8
codeberg.org/jersey/lightning/pkg/platforms/matrix.(*matrixPlugin).SendMessage(0x7f574a0540, 0x7f5748a370, 0x7f57708340)
/opt/lightning/go/pkg/mod/codeberg.org/jersey/lightning@v0.8.9/pkg/platforms/matrix/plugin.go:78 +0x58
codeberg.org/jersey/lightning/pkg/lightning.(*Bot).SendMessage(0x0?, 0x7f577c5e68, 0x7f57708340)
/opt/lightning/go/pkg/mod/codeberg.org/jersey/lightning@v0.8.9/pkg/lightning/methods.go:50 +0xd8
main.main.bridgeCreate.func3.1()
/opt/lightning/go/pkg/mod/codeberg.org/jersey/lightning@v0.8.9/cmd/lightning/bridge.go:49 +0x124
sync.(*WaitGroup).Go.func1()
/opt/lightning/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.26.4.linux-arm64/src/sync/waitgroup.go:258 +0x48
created by sync.(*WaitGroup).Go in goroutine 1354
/opt/lightning/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.26.4.linux-arm64/src/sync/waitgroup.go:238 +0x70
20:15:57 gateway.go:287: discord: connection resumed
Thank you very much in advance.
Hi there!
I managed to get Lightning running on my system, and registered it as an appservice on a friend's Matrix homeserver. We have successfully bridged their Matrix room to a Fluxer community.
However, when I send messages from Fluxer, the bot keeps updating my profile picture on the Matrix side.

As you can see in the picture, the avatar is updated when I send a message.
Not always, but very often.
I'm not sure if I've misconfigured something, but if you could take a look at my configurations and let me know if I did, I would appreciate it.
- The Matrix homeserver where the appservice is registered is `mx.scalie.zone`
- The bot is hosted on my server, `lightning-mx.68degrees.no`
- I only have one profile picture (no community specific ones) on Fluxer.
- I am not using Docker.
- Debian 13, Go 1.24, Lightning installed 2026年06月24日
Click each to expand them:
<details>
<summary><u>lightning.toml</u></summary>
```toml
database = "(redacted)"
prefix = "br!"
(Two other Discord plugins stripped from here)
[[plugins]]
type = "discord"
name = "fluxer-scaliebridge"
config.token = "(redacted)"
config.api_host = "api.fluxer.app"
config.cdn_host = "fluxerusercontent.com"
config.frontend = "web.fluxer.app"
[[plugins]]
type = "matrix"
name = "matrix-scaliebridge"
config.homeserver = "mx.scalie.zone"
config.proxy_url = "https://lightning-mx.68degrees.no/matrix"
config.proxy_port = "40995"
config.as_url = "https://lightning-mx.68degrees.no"
config.as_local = "scaliebridge"
config.as_token = "(redacted)"
config.hs_token = "(redacted)"
```
</details>
<details>
<summary><u>Appservice registration YAML</u></summary>
```yaml
id: "ScalieZone Lightning Bridge"
url: https://lightning-mx.68degrees.no
as_token: (redacted)
hs_token: (redacted)
sender_localpart: scaliebridge
namespaces:
users:
- exclusive: true
regex: "@_lightning_.*"
rate_limited: false
```
</details>
<details>
<summary><u>nginx</u></summary>
```nginx
server {
listen 443 ssl;
http2 on;
server_name lightning-mx.68degrees.no;
ssl_certificate (redacted);
ssl_certificate_key (redacted);
# Max file upload size
client_max_body_size 512M;
# Forward requests to Lightning
location /matrix/ {
proxy_pass http://127.0.0.1:40995$request_uri;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 300s;
proxy_send_timeout 300s;
}
location / {
proxy_pass http://127.0.0.1:5000$request_uri;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
```
</details>
Also, in case it helps, there is an error related to my Fluxer avatar in the log:
<details>
<summary><u>Lightning log</u></summary>
```
18:32:28 main.go:33: bridge: bot started
18:32:28 client.go:101: matrix: appservice ready at https://matrix.to/#/@scaliebridge:mx.scalie.zone
18:32:28 proxy.go:51: matrix: file proxy listening at :40995 and https://lightning-mx.68degrees.no/matrix
18:32:30 plugin.go:64: discord: ready as Hambot in 1 servers!
18:32:30 plugin.go:65: discord: invite at (redacted)
18:32:30 plugin.go:64: discord: ready as Hambot in 0 servers!
18:32:30 plugin.go:65: discord: invite at (redacted)
18:32:30 plugin.go:64: discord: ready as ScalieBridge in 0 servers!
18:32:30 plugin.go:65: discord: invite at (redacted)
18:33:29 gateway.go:371: discord: socket error, reconnecting: websocket: close 1000 (normal)
18:33:31 gateway.go:287: discord: connection resumed
19:43:46 bridge.go:204: bridge: EditMessage failed in fluxer-scaliebridge::1516619413405569027: Discord API Error: PATCH /v1/webhooks/1519756256598818816/3Ye2sbN7hiKsun1UjQfjHFjgB3zHjz1m6buulPMJZDUnHJd0FphSOC9A6r4JFBCB/messages/1519759980276752384 status 403 code 403;
19:51:18 outgoing.go:115: matrix: upload failed for https://fluxerusercontent.com/avatars/1473736904463351890/31796b3d.png: M_UNKNOWN (HTTP 500): Internal server error
19:51:18 bridge.go:42: bridge: panic on create in "matrix-scaliebridge::!khoUeIx6hgRnrAQC-vfqVNo72hYKLszdEmq66RjhJXE": runtime error: invalid memory address or nil pointer dereference goroutine 1355 [running]:
runtime/debug.Stack()
/opt/lightning/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.26.4.linux-arm64/src/runtime/debug/stack.go:26 +0x64
main.main.bridgeCreate.func3.1.1()
/opt/lightning/go/pkg/mod/codeberg.org/jersey/lightning@v0.8.9/cmd/lightning/bridge.go:42 +0x3c
panic({0x5f7580?, 0xcfa150?})
/opt/lightning/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.26.4.linux-arm64/src/runtime/panic.go:860 +0x12c
codeberg.org/jersey/lightning/pkg/platforms/matrix.(*matrixPlugin).getClient(0x7f574a0540, 0x7f5748a370)
/opt/lightning/go/pkg/mod/codeberg.org/jersey/lightning@v0.8.9/pkg/platforms/matrix/client.go:122 +0xf8
codeberg.org/jersey/lightning/pkg/platforms/matrix.(*matrixPlugin).SendMessage(0x7f574a0540, 0x7f5748a370, 0x7f57708340)
/opt/lightning/go/pkg/mod/codeberg.org/jersey/lightning@v0.8.9/pkg/platforms/matrix/plugin.go:78 +0x58
codeberg.org/jersey/lightning/pkg/lightning.(*Bot).SendMessage(0x0?, 0x7f577c5e68, 0x7f57708340)
/opt/lightning/go/pkg/mod/codeberg.org/jersey/lightning@v0.8.9/pkg/lightning/methods.go:50 +0xd8
main.main.bridgeCreate.func3.1()
/opt/lightning/go/pkg/mod/codeberg.org/jersey/lightning@v0.8.9/cmd/lightning/bridge.go:49 +0x124
sync.(*WaitGroup).Go.func1()
/opt/lightning/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.26.4.linux-arm64/src/sync/waitgroup.go:258 +0x48
created by sync.(*WaitGroup).Go in goroutine 1354
/opt/lightning/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.26.4.linux-arm64/src/sync/waitgroup.go:238 +0x70
20:15:57 gateway.go:287: discord: connection resumed
```
</details>
Thank you very much in advance.