saint

joined 3 years ago
MODERATOR OF
 

Distributed rate limiting

 

 

Some Soma

 

Everybody upgraded? Any horror stories?

 

Today's Indra's Net - everything is interconnected.

 

:/

 

;-)

 

cross-posted from: https://lemmy.world/post/11380787

CEOs Are Using Return To Office Mandates To Mask Poor Management::Why are companies that promote remote services so opposed to enabling remote work, and more importantly, feel the need to threaten their employees?

 

cross-posted from: https://lemmy.world/post/11279921

In major gaffe, hacked Microsoft test account was assigned admin privileges — How does a legacy test account grant access to read every Office 365 account?::undefined

 

Fun ):

[–] [email protected] 2 points 1 year ago

used to be remmel, but seems that development has stopped - it does not work with newer Lemmy versions.

[–] [email protected] 3 points 1 year ago

i used to compile then using Dockerfile in https://github.com/LemmyNet/lemmy/blob/main/docker/Dockerfile - probably you can use those commands on nixOS as well.

[–] [email protected] 3 points 1 year ago (2 children)
[–] [email protected] 6 points 1 year ago (1 children)
[–] [email protected] 3 points 1 year ago (2 children)

i have not used NixOS yet, not sure how easy to setup it on Oracle OCI, but i guess you will do fine ;)

[–] [email protected] 9 points 1 year ago (8 children)

it works fine, depending on popularity of your instance - you might have to add more resources in the future.

as for aarch64 - there are docker images available for lemmy and lemmy-ui

[–] [email protected] 8 points 1 year ago

One of the best strategies on the internet is to assume that everything will leak eventually and operate with that perspective in mind.

[–] [email protected] 1 points 1 year ago (1 children)
[–] [email protected] 0 points 1 year ago (3 children)

well probably you are right about the user error, but from the logs it seems that it cannot reach other instances - can you enter the shell of the container and check if you are able to ping/curl https://group.lt for example? and network isolation is a checkbox in portainer, according to docs.

for the federation itself i have also experienced it not working, when my nginx config was pointing wrongly to lemmy and lemmy-ui depending on the headers.

as i have said before - i can reach your instance from my lemmy, but don't receive anything back.

[–] [email protected] 0 points 1 year ago (5 children)

also pictrs: { url: "http://pictrs:8080/" # api_key: "API_KEY" }

about tls setting - don't remember why i have removed it, but group.lt federates fine. not sure about what you mean instance set to ALL.

what about network isolation in portainer? maybe it is on?

[–] [email protected] 0 points 1 year ago (7 children)

from the logs it seems that lemmy docker does not communicate with outside servers.

also i have a bit different config for lemmy.hjson

{
  # for more info about the config, check out the documentation
  # https://join-lemmy.org/docs/en/administration/configuration.html

  setup: {
    # username for the admin user
    admin_username: "adminuser"
    # password for the admin user
    admin_password: "adminpassword"
    # name of the site (can be changed later)
    site_name: "group.lt"
  }

  opentelemetry_url: "http://otel:4317"



  # the domain name of your instance (eg "lemmy.ml")
  hostname: "group.lt"
  # address where lemmy should listen for incoming requests
  bind: "0.0.0.0"
  # port where lemmy should listen for incoming requests
  port: 8536
  # settings related to the postgresql database
  # address where pictrs is available
pictrs: {
    url: "http://pictrs:8080/"
    # api_key: "API_KEY"
}
  database: {
    # name of the postgres database for lemmy
    database: "lemmy"
    # username to connect to postgres
    user: "lemmy"
    # password to connect to postgres
    password: "lemmy"
    # host where postgres is running
    host: "postgres"
    # port where postgres can be accessed
    port: 5432
    # maximum number of active sql connections
    pool_size: 5
  }
#  # optional: email sending configuration
  email: {
#    # hostname and port of the smtp server
    smtp_server: "postfix:25"
    smtp_from_address: "[email protected]"
    tls_type: false
  }


}

also check in admin interface if federation is enabled and you do not blacklist instances

(https://lemmy.bulwarkob.com/admin) and maybe you can try to enable federation debug mode for awhile

[–] [email protected] 0 points 1 year ago (9 children)

you can have two nginx proxy instances, one as a front (serving other sites besides lemmy instance) and another - coupled with lemmy instance. in such case the first one can be configured minimally with basic proxy stuff to internal lemmy one, no need for this fancy lemmy and lemmy-ui proxying.

location /{
   proxy_pass http://nginx-lemmy-docker:someport;
}
view more: ‹ prev next ›