Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apiembed only works with port 80 #52

Open
WALL-E opened this issue Jul 11, 2016 · 0 comments
Open

apiembed only works with port 80 #52

WALL-E opened this issue Jul 11, 2016 · 0 comments
Assignees
Labels

Comments

@WALL-E
Copy link

WALL-E commented Jul 11, 2016

I want to listen port 8080 to deploy mockbin, but apiembed can not work.
I look at the code, find the following line of code is the problem

//filename: src/views/bin/view.jade
// Original code
iframe(src='http://api.apiembed.com/?source=#{req.protocol}://#{req.hostname}/bin/#{req.params.uuid}/sample', frameborder=0, scrolling='no', marginheight=0, marginwidth=0, width='100%', height=350, seamless)

// Solved the problem
iframe(src='http://api.apiembed.com/?source=#{req.protocol}://#{req.hostname}:8080/bin/#{req.params.uuid}/sample', frameborder=0, scrolling='no', marginheight=0, marginwidth=0, width='100%', height=350, seamless)

Are there any other people who have this problem ? Is there a better way to solve it

@ahmadnassri ahmadnassri self-assigned this Jul 11, 2016
@ahmadnassri ahmadnassri changed the title mockbin only listen to the 80 port ? apiembed only works with port 80 Jul 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants