Comments (8)
I am using the node-ftp
library and they claim to support FTPS by using the secure
flag.
Since I can't reproduce this here (I don't have access to a server with FTPS), do you mind testing this option from node-ftp?
You can read the documentation here, it's pretty simple: https://github.com/mscdex/node-ftp
If it works for you, I can implement the secure
flag in DPLOY as well.
from dploy.
Yes sure, I will get back to you ASAP with this.
from dploy.
Hi @lucasmotta so I've managed to test locally using node-ftp and it works.
All I did was to add these options to the connect
method:
secure: true,
secureOptions: {
rejectUnauthorized: false
}
Complete script here:
var Client = require('ftp');
var c = new Client();
c.on('ready', function() {
console.log('done, I'm connected');
c.end();
});
c.connect({
host: 'my.server.com',
port: 21,
secure: true,
secureOptions: {
rejectUnauthorized: false
},
user: 'user',
password: 'pass'
});
So I guess you can implement the secure flag in DPLOY now, but the rejectUnauthorized
is important as well, it won't work without it.
from dploy.
Nice one! I will implement the secure
and secureOptions
as well.
Thanks for testing this, but I will need your help to test again once it's implemented!
from dploy.
Sure, just let me know and I will do it.
Thanks for your support.
from dploy.
Hey @radum, I just released a new version of DPLOY (v1.1.0) with the secure
and secureOptions
settings.
Let me know if it works, then we can tick this issue as closed.
from dploy.
Hey @lucasmotta works like a charm 👍
I just tested now and works great, thanks for the update.
from dploy.
I'd appreciate if the rejectUnauthorized
option would be specified in the README.md because it's not clear which secureOptions
can be specified without finding this issue.
from dploy.
Related Issues (20)
- Exclude directories HOT 3
- If FTP Connection fails, there should be a non-zero return HOT 1
- Doesn`w work on windows 10 HOT 2
- How to configure with corporate proxy
- Add option "confirm required" HOT 2
- Is Dploy still maintained? HOT 2
- To contribute or to fork HOT 4
- Don't work with "dist/" local directory HOT 3
- dploy - git diff - bad object HOT 2
- Not working on bare repository
- Error creating revision file HOT 2
- Stop at first file HOT 1
- Error YamlParseException HOT 1
- update dependancies HOT 1
- .rev content file updated by new hash commit but no files are transferred HOT 2
- Error when connecting to SFTP HOT 4
- Project status HOT 3
- Can I run dploy installed locally in project dependencies? HOT 3
- Sending files does not happen after check
- Not rename file after upload
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dploy.