feature/embedded-server-config #1

Manually merged
krageon merged 1 commit from krageon/zer.ooo-web:feature/embedded-server-config into master 2019-08-03 19:43:03 +00:00
Contributor

You can now create a server config with all information embedded. If you have a local private key, the form will ask for you to input the file in a file box. You can elect to decrypt it as well. The decryption of private keys happens clientside.

If you entered the private key file in the file box, the private key does not get sent to the server - the reference is used to read the file and manipulate the server output until a valid server config exists.

You can now create a server config with all information embedded. If you have a local private key, the form will ask for you to input the file in a file box. You can elect to decrypt it as well. The decryption of private keys happens clientside. If you entered the private key file in the file box, the private key does not get sent to the server - the reference is used to read the file and manipulate the server output until a valid server config exists.
eater requested changes 2019-08-03 19:34:32 +00:00
@ -0,0 +33,4 @@
});
function handleZipResult(data) {
//var blob = new Blob(data, {type: 'application/zip'});
Owner

commented code

commented code
Author
Contributor

fixed

fixed
@ -0,0 +71,4 @@
var keyEndOffset = match.index;
var keyContent = text.substring(keyStartOffset, keyEndOffset);
Owner
/\<\s*key\s*\>[\s\n]*(((?!\<\/key\>).)+)[\s\n]*\<\s*\/\s*key\s*\>/gm.exec(text)[1]
```js /\<\s*key\s*\>[\s\n]*(((?!\<\/key\>).)+)[\s\n]*\<\s*\/\s*key\s*\>/gm.exec(text)[1] ```
Author
Contributor

No, I'll pass

No, I'll pass
@ -0,0 +28,4 @@
{{ cert }}</cert>
<key>
{{ key }}</key>
Owner

please to end on next line

please to end on next line
Author
Contributor

Keys have a return after them. This way it looks exactly as the end user expects when the template is filled. This is to my mind the superior option.

Keys have a return after them. This way it looks *exactly* as the end user expects when the template is filled. This is to my mind the superior option.
Owner

I would rather have you use the following in that case

<key>
{{ key|trim }}
</key>
I would rather have you use the following in that case ```twig <key> {{ key|trim }} </key> ```
Author
Contributor

Good point, it's fixed

Good point, it's fixed
@ -25,1 +37,4 @@
</form>
<!-- TODO: Check data attribute to see if the cert is present -->
<!-- If cert is not on server, also ask for this -->
Owner

🤔🤔🤔🤔🤔

🤔🤔🤔🤔🤔
Author
Contributor

Fixed

Fixed
eater closed this pull request 2019-08-03 19:43:03 +00:00
krageon deleted branch feature/embedded-server-config 2019-08-03 19:49:46 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: zer.ooo/web#1
No description provided.