INNER CODE UNIT · Python

apply_config

kejilion/sh · site_access_config.py:73

def apply_config(directory: str, name: str, expected_sha256: str, server_index: int,
                 scope: str, location: str, modifier: str, action: str,
                 *, realm: str = '', user_file: str = '') -> str:
    return edit_config(directory, name, expected_sha256, server_index, scope, location, modifier,
                       action, realm=realm, user_file=user_file,
                       validate=lambda: nginx_command('-t'),
                       reload_config=lambda: nginx_command('-s', 'reload'))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…