Simple Run PHP+NGINX On OKTETO
This PHP+NGINX+FileBrowser Run on OKTETO repo. You can fork this repo to change some code. [This Repo Use PHP-FPM-8.1 / Nginx 1.22]
FREE USER can not use customDomain. so i add cloudflare Tunnel in this repo. //you can modify other proxy service providers here. such as Ngrok
If you want your container to run continuously. you need to visit the endpoint url given to you by okteto at regular intervals. //Okteto states that it will force a rebuild within 24 hours
Key | Sample Value | Info |
---|---|---|
FILE_USER | admin |
FILEBROWSER USERNAME |
FILE_PASSWORD | admin |
FILEBROWSER USER PASSWROD |
CF_TOKEN | ##longcode |
Register/Login CloudflareTunnel |
WEB_NGINX_SERVERNAME | DOMAIN |
Proxy DOMAIN |
revoke | revoke | revoke |
If you change nginx setting. see repo ./nginx/*.conf
- use command to download file (Why use commands? "Because prevents of abuse, if you use the user upload method, it will interrupt the connection at certain times.")
Runwget -c #download_url --limit-rate=1m -b
(-c Continuation / -b Background_Execution / --limit-rate=1m Exceeding this limit may cause the service provider to disconnect)
- wait a moment to download / use tar or unzip to decompression.
- You can frok this repo . This includes the operation of github actions
- Set env and secrets
Setting -> Secrets and variables -> Actions
Add two secrets
NAME_SPACE
andOKTETO_TOKEN
NAME_SPACE
is you okteto namesapce designate.OKTETO_TOKEN
was in okteto "SETTINGS" -> "Developer Settings" TOKEN
3.adjust schedule in Sleep_Namespace.yml and Wake_Namespace.yml UTC TIME