Add primary domain to Lets Encrypt for nginx configuration

I am running an app with a dockerized nginx on an EC2 instance and configured my ssl with Let’s Encrypt. Now I would like another primary domain to that certificate but I fail in doing so. When I run sudo docker run -it –rm -v /docker-volumes/etc/letsencrypt:/etc/letsencrypt -v /docker-volumes/var/lib/letsencrypt:/var/lib/letsencrypt -v /docker/letsencrypt-docker-nginx/src/letsencrypt/letsencrypt-site:/data/letsencrypt -v “/docker-volumes/var/log/letsencrypt:/var/log/letsencrypt” certbot/certbot certonly –webroot…

Details

Limit Quantity For the Products With Specific Attribute Magento2

Trying to Limit all the products with having a specific attribute (Yes/No) and others will behave normal. I have used the event in my module my event.xml <event name=”checkout_cart_product_add_before”> <observer name=”quantitylimiter” instance=”Apriljune\Qtylimiter\Observer\CartSaveAfter” /> </event> My Observer File having the following code: <?php namespace Apriljune\Qtylimiter\Observer; use Magento\Framework\Event\ObserverInterface; use Magento\Framework\App\RequestInterface; use Magento\Checkout\Model\Session; class CartSaveAfter implements ObserverInterface {…

Details

Firefox addon uninstall through registry

I have installed firefox addon by adding a key-value pair in the registry under the following path- Software\Policies\Mozilla\Firefox\Extensions\Install\1 = “https://addons.mozilla.org/firefox/downloads/myfile.xpi“ The installation works I want to uninstall the same extension, so I am adding another entry under the following path- Software\Policies\Mozilla\Firefox\Extensions\Uninstall\1 = “[email protected]” I am using the appropriate id and path. I am getting the…

Details

Create new role with specific ACL rights

I want to create a new admin role with some rights. So I use the following code : $role = $this->roleFactory->create(); $role->setName(‘MyNewRole’) ->setPid(0) ->setRoleType(RoleGroup::ROLE_TYPE) ->setUserType(UserContextInterface::USER_TYPE_ADMIN); $role->save(); $resource = [ ‘Magento_Sales::sales’ ]; $this->rulesFactory->create() ->setRoleId($role->getId()) ->setResources($resource) ->saveRel(); This code works. However, I would like all the subcategories of Sales, not only “Magento_Sales::sales”. For that, I know I…

Details