Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Playbook for nginx.
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
# install
nginx_default_release: ""
nginx_ppa_use: true
nginx_ppa_version: stable
nginx_package_name: "nginx"
# htpasswd
nginx_htpasswd: []
# - user: demo
# password: demo
# vhosts
nginx_remove_default_vhost: true
nginx_vhosts: []
# - name: "{{ project_name }}.conf"
# path: "{{ inventory_dir }}/templates/nginx.j2"
# nginx.conf
# nginx.conf:http
nginx_client_max_body_size: "64m"
# nginx.conf:extra
nginx_extra_conf_options: ""
# Example extra main options, used within the main nginx's context:
# nginx_extra_conf_options: |
# env VARIABLE;
# include /etc/nginx/main.d/*.conf;
nginx_extra_http_options: ""
# Example extra http options, printed inside the main server http config:
# nginx_extra_http_options: |
# proxy_buffering off;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Scheme $scheme;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header Host $http_host;
#dhparams
nginx_dhparam: true
#nginx_dhparam_file: /etc/nginx/dhparams.pem (optional)
#nginx_dhparam_size: 4096 (optional)
# apt get-install params
proxy_env:
http_proxy: ""
https_proxy: ""
- hosts: all
roles:
- nginx
gather_facts: False
pre_tasks:
- name: Install python for Ansible
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
changed_when: False
- setup: # aka gather_facts
vars:
nginx_vhosts:
- name: project.conf
path: "{{ inventory_dir }}/templates/nginx.conf.j2"
nginx_htpasswd:
- user: demo
password: demo
templates/nginx.conf.j2
server {
listen 80;
server_name 192.168.8.143;
default_type text/html;
location / {
#auth_basic "closed site";
#auth_basic_user_file htpasswd/demo---demo;
return 200 "hello world1";
}
}
FAQs
React components for n3 interfaces
The npm package @n3/kit receives a total of 33 weekly downloads. As such, @n3/kit popularity was classified as not popular.
We found that @n3/kit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.