blaze
blaze
CDCloudflare Developers
Created by blaze on 9/23/2024 in #pages-help
Submodules with Gitlab
Hi, What's the right way to manage permissions, submodule URLs, HTTPS vs SSH, etc. for a monorepo / repository with submodules? I created the project in the pages dashboard using the default method of OAuth and then scrolling through all the repositories and selecting the one containing my site. In theory this means that cloudflare has a token with permission to access all of my account. Now I'd like to add a submodule to the build process that's in a sibling directory of the site's repo. Unsurprisingly without further configuration the build fails:
Submodule 'Submodule' (https://gitlab+deploy-token-1234567:[email protected]/Group/Subomdule.git) registered for path 'Submodule'
Cloning into '/opt/buildhome/clone/Submodule'...
remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password. See https://gitlab.com/help/topics/git/troubleshooting_git#error-on-git-fetch-http-basic-access-denied
fatal: Authentication failed for 'https://gitlab.com/Group/Subomdule.git'
fatal: clone of 'https://gitlab+deploy-token-1234567:[email protected]/Group/Subomdule.git' into submodule path '/opt/buildhome/clone/Submodule' failed
Failed to clone 'Submodule'. Retry scheduled
Submodule 'Submodule' (https://gitlab+deploy-token-1234567:[email protected]/Group/Subomdule.git) registered for path 'Submodule'
Cloning into '/opt/buildhome/clone/Submodule'...
remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password. See https://gitlab.com/help/topics/git/troubleshooting_git#error-on-git-fetch-http-basic-access-denied
fatal: Authentication failed for 'https://gitlab.com/Group/Subomdule.git'
fatal: clone of 'https://gitlab+deploy-token-1234567:[email protected]/Group/Subomdule.git' into submodule path '/opt/buildhome/clone/Submodule' failed
Failed to clone 'Submodule'. Retry scheduled
Stack overflow says I can give pages permissions to access the submodule repo, but scrolling through the settings in both tools I am not seeing anything there that indicates exactly how they're connected together or any permissions I can change. What wouldb e the recommended way of doing this? Thanks
1 replies
CDCloudflare Developers
Created by blaze on 8/27/2024 in #pages-help
HSTS on Pages
Hi, Is there a way to set the HSTS header on a Pages site? Our domain isn't managed by cloudflare (so most of the general cloudflare settings aren't available), but the website is deployed through Pages, so uses Let's Encrypt. When I google it, I mostly get back results relating to cloudflare sites other than Pages. I have all the relevant redirections set up on our own server for when anybody doesn't visit www. explicitly. Thanks
3 replies
CDCloudflare Developers
Created by blaze on 7/4/2024 in #pages-help
Automatically Retry Pages Deployment
Hi, Just had a deployment fail within Cloudflare - from the logs, there was some I/O error when trying to log into the backend for our repository. I assume just a networking glitch. Is it possible to have Pages deployments automatically retry if they fail? Maybe two or three times, before we assume that there's something wrong in the commit and I'll have to intervene manually? Thanks
1 replies
CDCloudflare Developers
Created by blaze on 7/2/2023 in #pages-help
Custom Pages Domain stuck on "Inactive (Requires DNS Setup)"
3 replies