{"action":"created","issue":{"url":"https://api.github.com/repos/chrislusf/weed-fs/issues/9","labels_url":"https://api.github.com/repos/chrislusf/weed-fs/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/chrislusf/weed-fs/issues/9/comments","events_url":"https://api.github.com/repos/chrislusf/weed-fs/issues/9/events","html_url":"https://github.com/chrislusf/weed-fs/issues/9","id":38548061,"number":9,"title":"Public port & url","user":{"login":"ernado","id":866677,"avatar_url":"https://avatars.githubusercontent.com/u/866677?v=3","gravatar_id":"","url":"https://api.github.com/users/ernado","html_url":"https://github.com/ernado","followers_url":"https://api.github.com/users/ernado/followers","following_url":"https://api.github.com/users/ernado/following{/other_user}","gists_url":"https://api.github.com/users/ernado/gists{/gist_id}","starred_url":"https://api.github.com/users/ernado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ernado/subscriptions","organizations_url":"https://api.github.com/users/ernado/orgs","repos_url":"https://api.github.com/users/ernado/repos","events_url":"https://api.github.com/users/ernado/events{/privacy}","received_events_url":"https://api.github.com/users/ernado/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-07-23T16:44:59Z","updated_at":"2015-02-02T18:24:11Z","closed_at":"2015-02-02T18:24:11Z","body":"Use case:\r\nI have a weed servers:\r\n```\r\ns1.hostname.com:8080\r\ns2.hostname.com:8080\r\n```\r\nI can place them behind reverse-proxy (nginx), and they will be accessible as\r\n```\r\nhostname.com/media/s1/:80\r\nhostname.com/media/s2/:80\r\n```\r\nor even\r\n```\r\nhostname.com/media:80\r\n```\r\nor even\r\n```\r\nhostname.com/media:443\r\n```\r\nWhich is\r\n```\r\nhttp://hostname.com/media\r\nhttps://hostname.com/media\r\n```\r\nIn case of 100 replication enabled on master server.\r\n\r\nNow i can achieve this only with manual rewrite rules for s1 and s2.\r\n\r\n\r\nIt could be like\r\n```\r\nweed volume -port 8080 -publicPort 80 -publicPort 443 -publicURL \"hostname.com/media\"\r\n```\r\nOr something like this"},"comment":{"url":"https://api.github.com/repos/chrislusf/weed-fs/issues/comments/72509172","html_url":"https://github.com/chrislusf/weed-fs/issues/9#issuecomment-72509172","issue_url":"https://api.github.com/repos/chrislusf/weed-fs/issues/9","id":72509172,"user":{"login":"chrislusf","id":1543151,"avatar_url":"https://avatars.githubusercontent.com/u/1543151?v=3","gravatar_id":"","url":"https://api.github.com/users/chrislusf","html_url":"https://github.com/chrislusf","followers_url":"https://api.github.com/users/chrislusf/followers","following_url":"https://api.github.com/users/chrislusf/following{/other_user}","gists_url":"https://api.github.com/users/chrislusf/gists{/gist_id}","starred_url":"https://api.github.com/users/chrislusf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrislusf/subscriptions","organizations_url":"https://api.github.com/users/chrislusf/orgs","repos_url":"https://api.github.com/users/chrislusf/repos","events_url":"https://api.github.com/users/chrislusf/events{/privacy}","received_events_url":"https://api.github.com/users/chrislusf/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T18:24:11Z","updated_at":"2015-02-02T18:24:11Z","body":"Fixed in https://github.com/chrislusf/weed-fs/commit/cc724305b665bb13a592334cf4739c4498df9d72\r\n\r\nThis way, the publicUrl becomes free style text. You can use -publicUrl=\"hostname.com/media:433_or_any_text\"."}}