#Proxy setup

1 messages · Page 1 of 1 (latest)

merry violetBOT
#

:wave: Hey @glad topaz,

Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich immich.

References

Checklist

  1. :blue_square: I have verified I'm on the latest release(note that mobile app releases may take some time).
  2. :blue_square: I have read applicable release notes.
  3. :blue_square: I have reviewed the FAQs for known issues.
  4. :blue_square: I have reviewed Github for known issues.
  5. :blue_square: I have tried accessing Immich via local ip (without a custom reverse proxy).
  6. :blue_square: I have uploaded the relevant logs, docker compose, and .env files using the buttons below or the /upload command.
  7. :blue_square: I have tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable

(an item can be marked as "complete" by reacting with the appropriate number)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

austere silo
glad topaz
austere silo
#

I recommend getting a simple nginx page running before you try to proxy immich

#

there are lots of guides to getting nginx setup

glad topaz
#

I have this setup but for proxy host ssl i get internal error

glad topaz
#

@austere silo do you have a more detailed guide

noble shuttle
#

set a certificate for the page

#

or create one

glad topaz
#

is a cloudflare tunnel just as secure

#

because i got that workiing easy

austere silo
#

You won’t be able to upload files > 100 MB

glad topaz
noble shuttle
#

yes

glad topaz
#

dang

noble shuttle
#

for the proxy over cloudflare, free is limited at 100mb

glad topaz
#

so i have to do the reverse proxy for no limit

noble shuttle
#

yes, but if you have no large files, you should be fine

glad topaz
noble shuttle
#

wdym

glad topaz
#

CommandError: Saving debug log to /tmp/letsencrypt-log/letsencrypt.log
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/letsencrypt-log/letsencrypt.log or re-run Certbot with -v for more details.

at /app/lib/utils.js:16:13
at ChildProcess.exithandler (node:child_process:430:5)
at ChildProcess.emit (node:events:518:28)
at maybeClose (node:internal/child_process:1105:16)
noble shuttle
#

get a cloudflare cert

#

1 sec

glad topaz
noble shuttle
#

set it to 15 years

glad topaz
noble shuttle
glad topaz
noble shuttle
#

download it and add it to your proxy

noble shuttle
# glad topaz

this error means, that you were not able to request a certificate from letsencrypt

glad topaz
#

i add it throuh here correct ?

noble shuttle
#

ye

noble shuttle
# glad topaz

did you fill out the dns provider and credentials file content correctly there?

glad topaz
#

which format is it suppose to be

noble shuttle
#

sec

#

i'd take pem

#

also make sure to have two seperate files

#

mydomain.private.pem
mydomain.public.pem

noble shuttle
#

did you save the two seperate things

glad topaz
noble shuttle
glad topaz
#

no private

noble shuttle
#

revoke your cert and create a new one

#

you should see that

glad topaz
#

now i do

#

same error

languid wharf
#

You made sure to select the "PEM" key format?

noble shuttle
#

key = private.pem
cert = public.pem

glad topaz
#

ok it worked

#

where do i allow it in cloudflare

noble shuttle
#

read the page

glad topaz
#

what different ip

#

i pointed it to my server ip

noble shuttle
#

is it disallowed?

glad topaz
#

i dont think so

noble shuttle
#

you need to use your external IP

#

please be really careful with exposing your services to the internet. It seems like you are not too experienced with self hosting. collect some information first and try out your self hosted stuff locally. when you understand what you are doing, you can expose it. it is important to be aware of the risks of exposing to the web

glad topaz
noble shuttle
glad topaz
#

Alright

noble shuttle
#

and dont just copy paste commands, try to understand them

#

no sysadmin should ever just copy and paste commands and run them on the system

#

did you manage to get your page up and running?

glad topaz
noble shuttle
#

what does that mean

glad topaz
#

Only time it shows something is when I put the ip to internal

noble shuttle
#

cant really help without logs etc

#

what shows when you open the dev console (f12)

glad topaz
#

One moment

glad topaz
glad topaz
noble shuttle
noble shuttle
glad topaz
#

one sec

noble shuttle
#

your external address is given by your internet provider

glad topaz
#

proxied or no ?

noble shuttle
#

?

#

this ip is most likely not fix, so something like cloudflare-ddns comes in handy

glad topaz
noble shuttle
#

where is your website hosted

glad topaz
#

but i point my domain to cloudflare

noble shuttle
#

where is immich hosted

#

on a local pc in your network?

glad topaz
noble shuttle
#

where does immich run?

glad topaz
noble shuttle
#

how can you access it then?

glad topaz
#

idk

noble shuttle
#

is immich running right now?

glad topaz
#

oh

#

you were talking about immich

noble shuttle
#

no

glad topaz
noble shuttle
#

ok

#

did you forward ports to your raspberry pi?

glad topaz
#

yes

noble shuttle
#

what port

glad topaz
#

2283

noble shuttle
#

why 2283?

glad topaz
noble shuttle
#

thats not port forwarding

glad topaz
#

yeah i cant port forward like you would through router

noble shuttle
#

thats needed to to reverse proxy

glad topaz
#

no other way ?

noble shuttle
#

the way you connect to the internet is trough your router

#

also the way the internet can connect to you is trough the router