mirror of
https://github.com/hazemKrimi/touch-programming.git
synced 2026-05-01 18:20:26 +00:00
Fixes and improvements
This commit is contained in:
@@ -49,5 +49,3 @@ jobs:
|
|||||||
ssh-keyscan -H hazemkrimi.tech >> ~/.ssh/known_hosts
|
ssh-keyscan -H hazemkrimi.tech >> ~/.ssh/known_hosts
|
||||||
rsync -avz --delete client/build/* deploy@hazemkrimi.tech:/var/www/touch-programming.hazemkrimi.tech/public
|
rsync -avz --delete client/build/* deploy@hazemkrimi.tech:/var/www/touch-programming.hazemkrimi.tech/public
|
||||||
rsync -avz --delete server/executable deploy@hazemkrimi.tech:/var/www/touch-programming.hazemkrimi.tech/api
|
rsync -avz --delete server/executable deploy@hazemkrimi.tech:/var/www/touch-programming.hazemkrimi.tech/api
|
||||||
# scp -r client/build deploy@hazemkrimi.tech:/var/www/touch-programming.hazemkrimi.tech/public
|
|
||||||
# scp server/executable deploy@hazemkrimi.tech:/var/www/touch-programming.hazemkrimi.tech/api
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
export const KEYS_TO_DISABLE = [
|
export const KEYS_TO_DISABLE = [
|
||||||
'Backspace',
|
'Backspace',
|
||||||
'Shift',
|
'Shift',
|
||||||
'Alt',
|
|
||||||
'Control',
|
'Control',
|
||||||
'F1',
|
'F1',
|
||||||
'F2',
|
'F2',
|
||||||
|
|||||||
+3
-10
@@ -1,14 +1,8 @@
|
|||||||
events {}
|
server {
|
||||||
|
|
||||||
http {
|
|
||||||
include /etc/nginx/mime.types;
|
|
||||||
default_type application/octet-stream;
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
server_name touch-programming.hazemkrimi.tech;
|
server_name touch-programming.hazemkrimi.tech;
|
||||||
|
|
||||||
access_log /var/log/nginx/access.log;
|
access_log /var/log/nginx/access.log;
|
||||||
root /usr/share/nginx/html;
|
root /var/www/touch-programming.hazemkrimi.tech/public;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
@@ -33,5 +27,4 @@ http {
|
|||||||
proxy_cache_bypass $http_upgrade;
|
proxy_cache_bypass $http_upgrade;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
Description=Touch Programming API Service
|
Description=Touch Programming API Service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/local/bin/touch-programming-api
|
ExecStart=/var/www/touch-programming.hazemkrimi.tech/api/executable
|
||||||
WorkingDirectory=/usr/local/bin
|
WorkingDirectory=/var/www/touch-programming.hazemkrimi.tech/api
|
||||||
User=hazem
|
User=hazem
|
||||||
Group=hazem
|
Group=hazem
|
||||||
LimitNOFILE=65536
|
LimitNOFILE=65536
|
||||||
|
|||||||
+3
-1
@@ -26,7 +26,9 @@ func main() {
|
|||||||
|
|
||||||
ech := echo.New()
|
ech := echo.New()
|
||||||
|
|
||||||
ech.Use(middleware.CORS())
|
ech.Use(middleware.CORSWithConfig(middleware.CORSConfig{
|
||||||
|
AllowOrigins: []string{"https://touch-programming.hazemkrimi.tech"},
|
||||||
|
}))
|
||||||
|
|
||||||
ech.GET("/generate", handlers.Generate)
|
ech.GET("/generate", handlers.Generate)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user