Comments (22)
Sorry, I've got it to work now. Misplaced characters in ENV.
By starting the application by using SERVER_NAME=http://my.address PLUGIN_GITHUB_APP_ID=<myAppID> PLUGIN_GITHUB_APP_SECRET=<myAppSecret> node bin/strider
I got it to work.
Might be worthwhile to update the README and state that ID
and SECRET
must be present for it to work, instead of optional.
from strider-github.
I have this same issue.. i'm trying to figure out how I am supposed to configure this.
from strider-github.
@midgethoen have you updated your github plugin in the Strider "Plugins" page?
from strider-github.
Also having this issue
from strider-github.
Same here (using strider 1.7.5
and strider-github 2.1.2
)
from strider-github.
Found a workaround. Use the following ENVs to configure github:
PLUGIN_GITHUB_APP_ID
PLUGIN_GITHUB_APP_SECRET
Along with SERVER_NAME
. Looks like there is a check for plugins, which are
found by the PLUGIN_<pluginname>
env prefix and then Github config is fixed. Will look into this some more later.
Hum, you're probably already doing this. When does the callback not work, at what step in Strider?
from strider-github.
Could someone post how they start strider, with the envs (you can blank them out if they are sensitive)?
from strider-github.
export SERVER_NAME = "https://strider.scapp.io"
export DB_URI = [my_mongo_uri]
export SMTP_HOST = "smtp.mailgun.org"
export SMTP_USER = [my_mailgun_username]
export SMTP_PASS = [my_mailgun_password]
NODE_ENV=production npm start
from strider-github.
^ ok yes you are missing the two ENVs for setting up the github plugin, see #55 (comment) and the readme.
from strider-github.
Hit this while doing some Nginx proxy shenanigans, and exporting SERVER_NAME
worked after realizing that it needs to be set to the publicly-facing connection, not the internal one. I wanted to have my Strider instance available on port 80 - probably could just set Strider to export port 80 instead of doing this Nginx stuff...
I am using this upstart script.
- The upstart script was exporting "http://123.456.1.2:4000"
- Github auth endpoint was "http://123.456.1.2/auth/github/callback"
- Nginx conf:
server {
listen 80;
server_name 123.456.1.2;
access_log /var/log/nginx/strider.access.log;
error_log /var/log/nginx/strider.error.log;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header HOST $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://123.456.1.2:4000;
proxy_redirect off;
}
}
... and the problem was that the upstart script should have exported http://123.456.1.2
, without the port.
On a side note, I'm not able to upgrade the system's strider-github
package because the strider user doesn't auto-sudo. Weird.
from strider-github.
@alexfernandez could you put a console.log(rc)
here (after the if
): https://github.com/Strider-CD/strider/blob/master/lib/libconfig.js#L69 and run the app and post the results (make sure to obscure sensitive info) here.
from strider-github.
The problem is that Strider is changing the env variable SERVER_NAME
to strider_server_name
here. I have fixed it with this PR: #59.
from strider-github.
That is how rc
works, so it shouldn't be a problem. Try master with something like DEBUG=strider:config PLUGIN_GITHUB_TEST=test SERVER_NAME=blah npm start
You should get something like:
{
"logging": {
"exitOnError": true,
"file_enabled": false,
"console": {
"level": 0,
"colorize": true,
"timestamp": true
},
"console_enabled": true
},
"viewpath": "/Users/iradchenko/sandbox/strider/lib/views",
"host": "0.0.0.0",
"port": 3000,
"server_name": "blah",
"db_uri": "mongodb://localhost/strider-foss",
"smtp_host": "",
"smtp_port": 587,
"smtp_user": "",
"smtp_pass": "",
"smtp_from": "Strider <[email protected]>",
"enablePty": false,
"extpath": "node_modules",
"session_secret": "8L8BudMkqBUqrz",
"github_app_id": "",
"github_secret": "",
"cors": false,
"body_parser_limit": false,
"_": [],
"stubSmtp": true,
"plugins": {
"github": {
"test": "test",
"hostname": "blah"
}
}
from strider-github.
You are right, the change referenced above is unnecessary.
The problem was that, if you use a domain different than localhost:3000
, you need to add your own developer integration as explained here. Novice error, but it shows as a redirect to http://localhost:3000
since this is the default declared callback URL for the default client ID. Hope this helps someone else.
from strider-github.
This is still an issue. I've tried the solution above and it does not work. Still getting localhost:3000 in my callback URL.
from strider-github.
Did you update to 1.7.6?
from strider-github.
Running 1.7.6 yes.
Bitbucket is working fine, but Github not so much.
from strider-github.
So I cannot reproduce this issue. I'll try do a fresh setup this weekend. Any help in narrowing down where the issue is, would be very appreciated.
from strider-github.
The should be optional as of 1.7.6.. will look into that.
from strider-github.
@knownasilya sry, I missed your question and should have updated my question anyway. Yes, I upgraded the github plugi, which -- I believe -- fixed the issue for me.
from strider-github.
@asayuki , it works
from strider-github.
FYI - I was running strider 1.7.7 and everything worked fine with the basic env vars (no github_app_id or secret). I ended up reinstalling and got strider v1.8.0 and now it's required that I set github_app_id
& github_secret
in order for github plugin to work.
from strider-github.
Related Issues (20)
- Error creating project (Failed to setup repo: Bad status code: 401) HOT 2
- getting this working with github enterprise HOT 10
- sendJob should return true, because if we reach that point in the code, the job has been successfully created?
- Please update version on npm to 2.2.0 HOT 5
- Setting up a private project I can access but do not own HOT 3
- Fix tests
- File version mismatch on npm install HOT 1
- Allow specification of APP_ID, SECRET, DOMAIN, ENDPOINT per account HOT 1
- webhooks.js expecting objects to exist that do not HOT 2
- Use SSH authentication instead of HTTPS HOT 3
- Unable to 'run' new projects due to ssh failure (publickey) HOT 10
- Delete branch HOT 12
- Strider fails to install deploy key
- Strider build 'undefined' branch when tag is pushed HOT 4
- Plugin crashes when pull request has merge conflict HOT 2
- Webhook error on release HOT 2
- Git Clone Invalid Syntax HOT 1
- git clone fails HOT 9
- Question: Do you need an email address for Github to work? HOT 1
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 strider-github.