Skip to content

plesk/extensions-catalog-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart Proxy Example for ext.plesk.com

Here is the example of smart proxy for extensions catalog for Plesk. It allows you to filter the extensions or modify metadata attributes (for not installed extensions).

Example utilizes the Docker to simplify the demonstration and/or deployment. We need a webserver and some scripting tool. Here we use nginx and php official Docker images.

One can clone the repo and start the containers using docker-compose command:

cd extensions-catalog-proxy ; docker-compose up

The last step is to say Plesk to use a proxy instead of original extensions catalog. Log in to Plesk server via SSH as root and type the following:

plesk conf panel.ini

The default editor will be opened, you need to add the following lines:

[extensions]
catalog.url = "http://<proxy-address>:8080"

Where should be replaced with real proxy address (IP of machine, where docker-compose has been launched).

That's all. To manage a 'while list' filter just edit site/index.php and adjust a list of extensions. To get a full list of extensions you can use https://ext.plesk.com/api/v4/packages

About

Smart proxy example for ext.plesk.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages