Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

NicoChiGu/php-nginx-okteto

Repository files navigation

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

The following are preset variables

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

Okteto directly connect containers using container names


**Exp: ./nginx/my_server_block.conf **

fastcgi_pass php:9000; Where php is the container name


How to upload your web file

  1. access filebrowser and Login
    1680164792945
  1. setting command
    image input some command. Exp: wget tar zip unzip ls chmod chown
  1. access /app folder and "toogle shell" image
  1. 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.")
    Run wget -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)
  1. wait a moment to download / use tar or unzip to decompression.

How to persistent running namespace

  1. You can frok this repo . This includes the operation of github actions
  1. Set env and secrets

Setting -> Secrets and variables -> Actions

Add two secrets NAME_SPACE and OKTETO_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

About

Simple Nginx+PHP-FPM Run on the Okteto

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages