Jump to content
  • 0
Sign in to follow this  
yarebenko

/ci как создать домен 4 уровня

Question

как создать домен 4 уровня?
ручка UI отправляет JSON
 

[
	{
		"ip": {
			"http": {
				"proxy": {
					"SUBDOMAIN": {
						"allow": {
							"public": "public"
						},
						"domain": {
							"ndns": true
						},
						"upstream": {
							"port": "443",
							"proto": "http",
							"upstream": "IP"
						}
					}
				}
			}
		}
	},
	{
		"system": {
			"configuration": {
				"save": true
			}
		}
	}
]

и как я понимаю это транслируется в
 

$ ip http proxy SUBDOMAIN
$ ...

2 вопроса
1) что дальше (схема ip http proxxy не поддерживает аргументов кроме имени прокси,
2) на запрос в /ci
 

curl \
--digest \
--user ***:*** \
"http://192.168.1.1/ci" \
-H "Content-Type: application/xml" \
--data-binary '
<request id="1">
	<command name="ip http proxy">
		<name>SUBDOMAIN</name>
	</command>
</request>
' 

прокся создаётся но не отображается в UI

что я делаю не так?

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
<packet>
	<request id="create">
		<command name="ip http proxy">
			<name>asd</name>
		</command>
	</request>

	<request id="domain">
		<command name="ip http proxy domain ndns">
			<name>asd</name>
		</command>
	</request>

	<request id="allow">
		<command name="ip http proxy allow">
			<public>public</public>
			<name>asd</name>
		</command>
	</request>

	<request id="upstream">
		<command name="ip http proxy upstream">
			<proto>http</proto>
			<upstream>192.168.1.179</upstream>
			<port>443</port>
			<name>asd</name>
		</command>
	</request>
	<request id="save">
		<command name="system configuration save">
		</command>
	</request>
</packet>

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...