# # !!! This file is managed by Ansible !!! # [common] server_addr = {{ services.frpc.serverAddress }} server_port = {{ services.frpc.serverPort }} token = {{ services.frpc.token }} {% if services.frpc.dashboard.enable is defined and services.frpc.dashboard.enable is true %} dashboard_port = {{ services.frpc.dashboard.port }} dashboard_user = {{ services.frpc.dashboard.user }} dashboard_pwd = {{ services.frpc.dashboard.passwd }} {% endif %} {% for tunnel in services.frpc.tunnels %} [{{ tunnel.name }}] type = {{ tunnel.type }} {% if tunnel.local_ip is defined %} local_ip = {{ tunnel.local_ip }} {% endif %} {% if tunnel.local_port is defined %} local_port = {{ tunnel.local_port }} {% endif %} {% if tunnel.remote_port is defined %} remote_port = {{ tunnel.remote_port }} {% endif %} {% if tunnel.custom_domains is defined %} custom_domains = {{ tunnel.custom_domains }} {% endif %} {% if tunnel.subdomain is defined %} subdomain = {{ tunnel.subdomain }} {% endif %} {% if tunnel.locations is defined %} locations = {{ tunnel.locations }} {% endif %} {% endfor %}