https://discord.cloudflare.com logo
Join Discord
Powered by
# workers-discussions
  • i

    itsmatteomanf

    01/11/2021, 9:54 PM
    Also, Spectrum is expensive, really expensive, apparently.
  • c

    CodeCo

    01/11/2021, 10:46 PM
    It's the traffic that's expensive
  • i

    itsmatteomanf

    01/11/2021, 10:51 PM
    Sure, but especially for Cloudflare's standards it's expensive, but I don't know figures.
  • a

    advaith

    01/11/2021, 10:55 PM
    if you just want to expose something running locally you can use argo tunnel
  • p

    Peps

    01/11/2021, 10:59 PM
    Yeah definitely. Though I have seen that for some Enterprise clients that they get Argo unlimited in their contract, so I wonder if the same is also possible for Spectrum then
  • i

    itsmatteomanf

    01/11/2021, 10:59 PM
    Anything is possible ahah
  • p

    Peps

    01/11/2021, 11:01 PM
    Heh yep. Anything for the right amount of money
  • d

    Deleted User

    01/11/2021, 11:26 PM
    Does that do DDOS blocking though?
  • i

    itsmatteomanf

    01/11/2021, 11:28 PM
    It's exposed just like a normal origin, so yeah.
  • i

    itsmatteomanf

    01/11/2021, 11:29 PM
    We are going out of scope though, those are questions idea for the Community at https://community.cloudflare.com.
  • d

    Deleted User

    01/12/2021, 12:01 AM
    hello
  • g

    GONK

    01/12/2021, 12:41 AM
    hi
  • s

    SEOWorks

    01/12/2021, 3:44 AM
    Hi all. I am a big Fan of Cloudflare Workers but it has a heavy big limitation for me right now ! Without this possiblity i dont see a bright future for the serverless approach and for workers in specific. I really need fast a possiblity to localize / globalize workers. How can this be done natively with workers ? https://tinyurl.com/cf-workers-localization
  • a

    advaith

    01/12/2021, 3:47 AM
    workers is just JavaScript, you can make it output any string you want
  • a

    advaith

    01/12/2021, 3:48 AM
    just make a function to find the string in the json with the set lang and output it? I don't see anything specific to Workers about that
  • a

    adaptive

    01/12/2021, 4:00 AM
    there is a localize tutorial in the docs https://developers.cloudflare.com/workers/tutorials/localize-a-website
  • s

    Spoofh

    01/12/2021, 4:16 AM
    Someone has an idea what i can do, when something is between cloudflare and my s3 bucket that changes the ip? I have a bucket policy that only allows cloudflare ips, but i get an access denied in my worker. It seems that something between them changes the ip. Some Load Balancer or Proxy. I want to restrict the access to my bucket to cloudflare only.
  • s

    SEOWorks

    01/12/2021, 4:33 AM
    @adaptive @adv@advaith Thanks for the Tips. This approaches requires that you deal itself with localization catalogs and locales which is against the serverless approach. What cloudflare workers need to provide is the possibility to use a function like «setlocale» and «gettext» that php provides to internationalize / localize workers. Every other solution is in my view a joke. https://tinyurl.com/cf-setlocale https://tinyurl.com/cf-gettext
  • w

    wilbo007

    01/12/2021, 5:45 AM
    @User did you add all of the ranges?
  • s

    Spoofh

    01/12/2021, 5:53 AM
    Yes. All IPv4 and IPv6 addresses @User
  • s

    Spoofh

    01/12/2021, 5:54 AM
    Copy code
    {
                "Version": "2012-10-17",
                "Statement": [
                    {
                        "Sid": "PublicReadGetObject",
                        "Effect": "Deny",
                        "Principal": "*",
                        "Action": "s3:GetObject",
                        "Resource": "arn:aws:s3:::" + bucketName + "/*",
                        "Condition": {
                            "NotIpAddress": {
                                "aws:SourceIp": [
                                    "2400:cb00::/32",
                                    "2405:8100::/32",
                                    "2405:b500::/32",
                                    "2606:4700::/32",
                                    "2803:f800::/32",
                                    "2c0f:f248::/32",
                                    "2a06:98c0::/29",
                                    "103.21.244.0/22",
                                    "103.22.200.0/22",
                                    "103.31.4.0/22",
                                    "104.16.0.0/12",
                                    "108.162.192.0/18",
                                    "131.0.72.0/22",
                                    "141.101.64.0/18",
                                    "162.158.0.0/15",
                                    "172.64.0.0/13",
                                    "173.245.48.0/20",
                                    "188.114.96.0/20",
                                    "190.93.240.0/20",
                                    "197.234.240.0/22",
                                    "198.41.128.0/17"
                                ]
                            }
                        }
                    }
                ]
            }
  • d

    DunpIingss

    01/12/2021, 7:06 AM
    So if I were to buy a server or sum how would I even use it? Is there a software I download or@something that I would use?
  • a

    advaith

    01/12/2021, 7:43 AM
    what? you don't buy servers from cloudflare
  • w

    wilbo007

    01/12/2021, 9:54 AM
    That would be cool
  • f

    firefall

    01/12/2021, 9:57 AM
    what
  • f

    firefall

    01/12/2021, 9:58 AM
    servers are outdated, forget about servers
  • f

    firefall

    01/12/2021, 10:11 AM
    workers are pretty novel
  • w

    wilbo007

    01/12/2021, 10:12 AM
    yea but can u run a gameserver on a worker
  • f

    firefall

    01/12/2021, 10:27 AM
    some people should better recognize irony
  • k

    kristian

    01/12/2021, 4:13 PM
    good morning 👋
1...424344...2509Latest