This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM fabiocicerchia/nginx-lua | |
COPY ./nginx.conf /etc/nginx/nginx.conf | |
RUN mkdir /etc/nginx/conf.d | |
RUN mkdir /etc/nginx/lua | |
COPY lua/. /etc/nginx/lua | |
CMD [ "nginx", "-g", "daemon off;" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function parseAuthHeader(headers) | |
local authHeader = headers['Authorization'] | |
if authHeader == nil then | |
return nil | |
end | |
return string.match(authHeader, "Bearer%s(%a+)") | |
end | |
function write403Message () |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ## change to home directory | |
git clone [email protected]:elixir-lsp/elixir-ls.git .elixir-ls | |
cd .elixir-ls | |
mkdir release | |
mix deps.get && mix compile | |
mix elixir_ls.release -o release | |
## language server lives in | |
## ~/.elixir-ls/release/language_server.sh |
OlderNewer